i have this code that creates a div, adds id and appends the div. I am trying to drag that div but its not working like it should. $("<div class='twin_seat' style='width:120px;display:table-row;'></div>") .attr('id', twinseatsid) .appendTo(cinema) .draggable({ containment: cinema, snap: true, helper: 'clone' }); im using `helpe: clone` because i just want to visually see the element being dragged because when looking at the developer console the div does get dragged but it doesnt stay where it gets dragged to; that's the issue. help please. TIA.

Member Avatar
Member Avatar
+0 forum 1

hi guys. is there a plugin or jquery ui that i missed that would allow a user to resize width or height of image/element and rotate image/element? resize something other than .resizable() . i found [this](http://www.ajaxblender.com/howto-rotate-image-using-javascript-canvas.html) for rotation it uses canvad tag and DXImageTransform.Microsoft.BasicImage. is there any other? TIA!

Member Avatar
Member Avatar
+0 forum 3

Hi guys. I got draggable to work but im having a problem with draggable on a cloned element. I have a button class `.r6s` that when clicked an image will appear in the `containment-wrapper`. The image is wrapped in a div with id `sixr`. what i did is initially hide the `sixr` div then when `r6s` is clicked it will appear as a clone in the `containment-wrapper`. All that happens except after that draggable doesnt work. If it isn't cloned it does work but as cloned it doesnt. TIA <script type="text/javascript" src='js/jquery-1.11.1.js'></script> <script type="text/javascript" src='js/jquery-ui-1.11.0/jquery-ui.js'></script> <script> $(function() { $( "#sixr" …

Member Avatar
Member Avatar
+0 forum 2

in this table how to extract table data and mainly get value after the <b> tag like email id, tel, address <table width="100%" cellspacing="0" cellpadding="10" border="0" class="text"> <tbody> <tr valign="top" onmouseout="this.className = 'pa-nor'" onmouseover="this.className = 'pa-row-highlight'" class="pa-nor"> <td width="50%"> <span class="text1"> School name</span><br> <font color="#cococo"><i>Secondary School</i></font><br> <b>Principal Name:</b> kannan<br> <b>Name of Trust:</b> school Trust </td> <td width="50%"> <b>Address:</b> school address...<br> <b>Pin Code: </b>123456<br> <b>Tel: </b>963852<br> <b>Email:</b> sample@yahoo.co.in </td> </tr> </tbody> </table>

Member Avatar
Member Avatar
+0 forum 3

I have two tables, one being populated by data and another empty. I am using draggable and droppable jquery ui so I can move data from the first table to the other. and its working perfectly. Now, I am trying to clone the "tr" element of the second table where data is being copied when data is dropped using `.clone()` and the cloning works except it clones the data as well which i dont want i just want to clone the tr element. this is the html <div id="contact-list"> <table class="contact-list-table"> <thead> <th>Name</th> </thead> <tbody> <tr id="1"><td>Nora Marzuki</td></tr> <tr id="2"><td>Tunku …

Member Avatar
+0 forum 0

I would like to get **all** Equipment values. *I have used DOM Document.* It is reading **ONLY LAST Element**. *Equipment Id: 28*. I need all three. Thanks in advanced. XML File: <?xml version="1.0" encoding="UTF-8"?> -<Physical> <Catalog> </Catalog> -<Installed> -<Equipment> <Id>26</Id> <Ref>Tew12</Ref> -<Characteristic> <CharacteristicName>Height</CharacteristicName> <CharacteristicValue>160</CharacteristicValue> </Characteristic> -<Characteristic> <CharacteristicName>Tilt</CharacteristicName> <CharacteristicValue>30</CharacteristicValue> </Equipment> -<Equipment> <Id>27</Id> <Ref>Tew13</Ref> -<Characteristic> <CharacteristicName>Height</CharacteristicName> <CharacteristicValue>165</CharacteristicValue> </Characteristic> -<Characteristic> <CharacteristicName>Tilt</CharacteristicName> <CharacteristicValue>50</CharacteristicValue> </Equipment> -<Equipment> <Id>28</Id> <Ref>Tew14</Ref> -<Characteristic> <CharacteristicName>Height</CharacteristicName> <CharacteristicValue>190</CharacteristicValue> </Characteristic> -<Characteristic> <CharacteristicName>Tilt</CharacteristicName> <CharacteristicValue>50</CharacteristicValue> </Equipment> </Installed> </Physical> Expected Result: Id 26 Tilt 30 Id 27 Tilt 50 Id 28 Tilt 50 CODE: http://www.daniweb.com/web-development/php/threads/458094/how-to-get-nodevalue-with-xpathxmlphp

Member Avatar
Member Avatar
+0 forum 21

I'm working on a struct array and I need to dynamically delete elements from the struct. I have the added dynamically but I've run into some issues with deleting. I've researched different methods and tried a few. I found that one from here works, in that it will delete the entry but then using the view function won't print out the new array and crashes. I think it needs to be sorted but when I add my sort function it crashes before returning to the menu. The other method I tried also deleted the element through the index value but …

Member Avatar
Member Avatar
+0 forum 3

i created a testScores class which initialized an object with an array of scores and had an exception that if the score was <0 or >100 it would throw an IllegalArguementException. I got my main program to work it throws the exception for the array with the bad grade in it and it gives me the correct average for the array with al the good grades. My question is how do i print the position of the element in the array that the bad grade is and print the grade that threw the exception as well?? testScores class: public class …

Member Avatar
Member Avatar
+0 forum 2

I'm trying to extract an element's children from an AJAX call, but am having difficulty isolating it. My code is as follows: function AJAXcomplete(data){ var result = $(data).find('#productDetails > *'); jQ('#productDetails').append(result); }; function getDetails(e){ e.preventDefault(); var addy = jQ(this).attr("href"); jQ('body').append('<div id="productDetails"></div>'); jQ('#productDetails').show(); $.get(addy, AJAXcomplete); }; jQ('#slides').on('click', '.slideLink', getDetails); The above *should* append the children of `#productDetails` from the AJAX call, and append them to a newly created div of the same id. I can successfully retrieve the entire AJAX data and append that (tested) but I can't get the element I want. Am I doing something obviously wrong?

Member Avatar
Member Avatar
+0 forum 1

I coded 2 different webpages so that its easy for me to understand. Basically both the pages data should be on one page. I was wondering how can i merge both the pages to be one, without messing the design. What im trying to achieve is to run my first html page, and after i add the second page codes onto the first one, instead of the design messing up, i want it to come over the first page, i hope your getting this. For example: my first webpage is full of sliding images, and my second webpage is a …

Member Avatar
Member Avatar
+0 forum 13

Hi, I want to add element after an element with loop. For example, I have 10 paragraph elements and I want to add div element after each paragraph element. How can I do it?

Member Avatar
Member Avatar
+0 forum 4

i am new to html when i try to login i clicked the member login then it shows the login form focused how can i acheive it.

Member Avatar
Member Avatar
+0 forum 1

**i have consumed a webservice (shown below) from webservicex.net into my client C#.NET application but it is returning this whole bunch of XML. Please, how do i get values of only <wind> and <temperature> elements into my application's textbox? Thanks** <string><?xml version="1.0" encoding="utf-16"?> <CurrentWeather> <Location>Madrid / Cuatro Vientos, Spain (LEVS) 40-23N 003-47W 687M</Location> <Time>Dec 22, 2012 - 03:00 AM EST / 2012.12.22 0800 UTC</Time> <Wind> Calm:0</Wind> <Visibility> less than 1 mile:0</Visibility> <SkyConditions> obscured</SkyConditions> <Temperature> 50 F (10 C)</Temperature> <DewPoint> 50 F (10 C)</DewPoint> <RelativeHumidity> 100%</RelativeHumidity> <Pressure> 30.30 in. Hg (1026 hPa)</Pressure> <Status>Success</Status> </CurrentWeather></string>

Member Avatar
Member Avatar
+0 forum 1

Hey there. The situation is like this: 1. The user clicks a button. 2. Tooltip pops up. 3. The user clicks the button again OR the user clicks anywhere outside the tooltip. 4. The tooltip is removed. Now I can get either of the events described in step 3 to work, but I can't get them to work at the same time. My code is in short like this (I'm not copying all code, just explaining it, so not all functions that I mention are real functions as you will see ^^): button onclick="function() // Checks if tooltip exists and …

Member Avatar
Member Avatar
+0 forum 4

Hi Guys Can anyone give me an example on how to retrieve the value 16 in bold under the tagname <td>In process</td> with a webbrowser and insert this value to a texbox. Thanks <tbody> <tr class="odd"> <td>In Process</td> <td class="number">***16***</td> <td class="number">1</td> <td class="number">01:16:48</td> <td class="number">02:54:00</td> <td class="radio"><input type="radio" name="queue" checked="checked" onclick="document.location.href='management.lhtml?queue=1';" /></td> </tr> <tr> <td>Verification</td> <td class="number">11</td> <td class="number">0</td> <td class="number">00:59:24</td> <td class="number">07:23:26</td> <td class="radio"><input type="radio" name="queue" onclick="document.location.href='management.lhtml?queue=2';" /></td> </tr> <tr class="odd"> <td>Ready</td> <td class="number">20</td> <td class="number">0</td> <td class="number">03:26:40</td> <td class="number">08:38:42</td> <td class="radio"><input type="radio" name="queue" onclick="document.location.href='management.lhtml?queue=3';" /></td> </tr>

Member Avatar
Member Avatar
+0 forum 1

Hello Community, I want to know if there is a way to make a program that will click a button on a webbrowser but the button does not have a name (name="") or id (id="") property it just has a class (class="") property and if there is a way is there also a way to place text in a textbox on the webbrowser again the textbox does not have a name (name="") or id (id="") property it just has a class (class="") property.

Member Avatar
Member Avatar
+0 forum 1

I think this simple example might ask the question a lot more clearly. I have an input file with multiple products. There are different types of product (2 types with 2 product IDs is fine enough for this example), but the input will have many more. I only want to output the info for the first product of each type that I encounter in the for each Product loop. (I'm outputting info for the lowest priced product, so the first one will be the lowest price because I sort by Rate first.) So I want to read in each product, …

Member Avatar
Member Avatar
+0 forum 3

typedef struct zoz { int age; int mag; int suly; } nevsor_t; int olvas(nevsor_t * pnevsor) { return scanf("%d %d %d", &pnevsor->age, &pnevsor->mag, &pnevsor->suly); } int kiir(nevsor_t nevsor) { return printf("%d year\t%d cm\t%d kg\n", nevsor.age, nevsor.mag, nevsor.suly); } int sort_age(const void *a, const void *b) { struct nevsor_t *ia = (struct nevsor_t *)a; struct nevsor_t *ib = (struct nevsor_t *)b; return *ia->age - *ib->age; } I want to sort the elements of block tomb by age which is the first variable of struct nevsor_t. The elements are added manually from the keyboard: int main() { int i,n; nevsor_t tomb[50]; nevsor_t …

Member Avatar
Member Avatar
+0 forum 1

case 4: { cout<<"Enter the word you want to delete: "; gets(b); f1.open("anotherf.txt",ios::in); f2.open("tempf.txt",ios::out); while(!f1.eof()) { f1>>a; i++; if(strcmp(a,b)==0) { j=i; } } i=0; while(!f1.eof()) { if(i!=j) { f1>>a; f2<<a; } i++; } f1.close(); f2.close(); f2.open("tempf.txt",ios::in); f2.seekg(0); f1.open("anotherf.txt",ios::out); while(!f2.eof()) { f2>>a; f1<<a; } goto menu; } I am trying to delete a certain element from a file. However when i run it it only displays blank. And from testing it, i THINK it doesn't even reach the part of the code where the information is passed from the second file back to the first.Im new to file handling, please help! …

Member Avatar
Member Avatar
+0 forum 1

Hi, I have a XML file: <?xml version="1.0" encoding="ISO-8859-1"?> <Report> <config repstarttime="" rependtime=""></config> <cashdrops></cashdrops> <cashsheets></cashsheets> <cspdata></cspdata> <fdremdata> <fdrementry ENTRYID=""></fdrementry> </fdremdata> <SHIFTDATA> <SHIFT_CD_Index ShiftSystemIndex="1" Shift_CD_Used="1" ></SHIFT_CD_Index> <SHIFT_CD_Index ShiftSystemIndex="2" Shift_CD_Used="1" ></SHIFT_CD_Index> <SHIFT_CD_Index ShiftSystemIndex="3" Shift_CD_Used="1" ></SHIFT_CD_Index> <SHIFT_CD_Index ShiftSystemIndex="4" Shift_CD_Used="1" ></SHIFT_CD_Index> </SHIFTDATA> <Order> <OrderHead filelocation="" filesuccess="TRUE" Attendant=""></OrderHead> <NFC1DATA nfc1count="0"></NFC1DATA> <PAYMENTDATA paymentcount="1"> <payentrydata id="1"></payentrydata> </PAYMENTDATA> <CASHBACKDATA cashbackcount="0"></CASHBACKDATA> <Product> <productdata ProdCompActive="FALSE" ProdDesc="Product1" ProdIDNum="00001" ProdQty="1"> <productsession> <productsessiondata>[CONTENT1] *1;</productsessiondata> <productsessiondata>[CONTENT2] *1;</productsessiondata> <productsessiondata>[CONTENT3] *1;</productsessiondata> <productsessiondata>[CONTENT4] *1;</productsessiondata> <productsessiondata>[CONTENT5] *4;</productsessiondata> <productsessiondata>[CONTENT6] *4;</productsessiondata> </productsession> </productdata> </Product> <histdata id="1" SYS_ID="1" DTE="20120401"></histdata> <histdata id="2" SYS_ID="1" DTE="20120401"></histdata> <histdata id="3" SYS_ID="0" DTE="20120401"></histdata> <histdata id="4" SYS_ID="1" DTE="20120401"></histdata> <histdata id="5" SYS_ID="0" DTE="20120401"></histdata> <FooterDATA footercount="0"></FooterDATA> </Order> </Report> and I …

Member Avatar
Member Avatar
+0 forum 7

I need help creating xml file with C# ok lets say I have the following users.xml file that contains the following <Users> </Users> After executing the C# code below public void addUser() { string filePaths = "users.xml"; XmlDocument xmlDoc = new XmlDocument(); string user = textBox2.Text; // USER INPUT if (File.Exists(filePaths)) { xmlDoc.Load(filePaths); XmlElement elmRoot = xmlDoc.DocumentElement; XmlElement elmNew = xmlDoc.CreateElement("User"); elmRoot.AppendChild(elmNew); elmRoot = xmlDoc.DocumentElement; elmNew = xmlDoc.CreateElement("Name"); XmlText CreateUserText = xmlDoc.CreateTextNode(user); elmRoot.LastChild.AppendChild(elmNew); elmRoot.LastChild.LastChild.AppendChild(CreateUserText);//8 xmlDoc.Save(filePaths); } } I get the following xml file <Users> <User> <!-- Generated by C# code above --> <Name>Eric</Name> <!-- Generated by C# code above --> …

Member Avatar
Member Avatar
+0 forum 1

Im trying to increase a dynamic array by 1 element and assign a integer variable to it but recieve a heap overload error. Any advice would be appreciated. void CardSet::AddCard(int cardNum) { int* tmp; nCards++; tmp = new int[nCards]; for(int i = 0; i < (nCards - 1); i++) { tmp[i] = Card[i]; } delete [] Card; Card = tmp; Card[nCards] = cardNum; }

Member Avatar
Member Avatar
+0 forum 3

I have used queue but I cant figure out how to write code to display horizontal(bfs) and vertical binary search traversal

Member Avatar
Member Avatar
+0 forum 3

i have the code in my project- <Script language="JavaScript"> function goto(form) { var index=form.select.selectedIndex if (form.select.options[index].value != "0") { location=form.select.options[index].value;}} </SCRIPT> <FORM NAME="form1"> <SELECT NAME="select" ONCHANGE="goto(this.form)" SIZE="1"> <OPTION VALUE="">-------Choose a Purpose------- <OPTION VALUE="<?php echo base_url()."admin_panel/post_pmb/project"; ?>">Project Discussion </option> <OPTION SELECT="SELECTED" VALUE="<?php echo base_url()."admin_panel/post_pmb/general"; ?>">General Discussion</option> </SELECT> </FORM> in this code the select="selected" element is not working.

Member Avatar
Member Avatar
+0 forum 1

Hi there, I have a Country/City list in my SQL database and access it with PHP using a select element in php. I use the Chosen Jquery Plugin for the styling of these select elements. Now my problem is that i want only the cities of the country selected to display, and i got that right, but then when it loads the city list, it discards the Chosen Style to the select element. To load my City Select data i use the onChange event. here is the code: function getXMLHTTP() { //fuction to return the xml http object var xmlhttp=false; …

Member Avatar
+0 forum 0

I am trying to create a webpage that grabs the rss feed from http://www.paintballtree.com/rss/videos/newest. I have the code that gets the page and I can access all parts of the items using getElementsByTagName(' element ')[0].firstChild.nodeValue; however, I cannot access `getElementsByTagName(' description ')[0].firstChild.nodeValue;` which is the most important part. It keeps coming up as blank or a text node. I have no idea what I am doing wrong.

Member Avatar
+0 forum 0

[CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> //typedef struct to define what's in the phonebook typedef struct PhoneBookContacts { char Name[20]; char Surname[20]; char PhoneNumber[20]; } phone; //Function prototypes void AddEntry (phone[]); void DeleteEntry (phone[]); void PrintEntry (phone[]); void Sort (phone[]); int counter = 0; //Global counter variable used to keep track of number of contacts //Begin main function int main (void) { phone phonebook[20]; //Phonebook instance char userChoice; //Variable to use to select menu choice while (userChoice != 'Q') { printf ("***************\n"); printf ("Please enter a command:\n"); printf("'A': Add an entry\n"); printf("'D': Delete an entry\n"); printf("'S': Sort entries\n"); printf("'P': Print …

Member Avatar
Member Avatar
+0 forum 7

Dear All, I'm new to C, and would appreciate your help about the below code. The purpose of the program is to multiply the elements of the array and print the result. The user enters the value for how many elements he wants to have multiplied, and then the function should calculate. For example, if the user enters 3, the result should be 1*2*3=6. For 4, the result should be 1*2*3*4=24. But, when I run the program, I always get very big and false numbers. [CODE]#include <stdio.h> int multiply_array_elements(const int ar1[], int n, int multiplication); int main(void) { const int …

Member Avatar
Member Avatar
+0 forum 3

I just started using HTML5 in my documents, and at this point, I'm missing XHTML's <center> tag. I've tried using text-align to center the element, but it doesn't seem like it works on .lbi files. Any advice on how to center an .lbi library element?

Member Avatar
+0 forum 0

Hi all! I have a DIV (#content) and in that DIV I have about 4 or 5 <p>'s on the page. I'd like to give just one class of that <p> some jQuery to rotate 45 degrees. Could anyone point me in the right direction? I've searched everywhere I can think of for it. Thanks!

Member Avatar
Member Avatar
+0 forum 1

The End.