20 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for nadiam

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 …

Member Avatar for nadiam
0
199
Member Avatar for PriteshP23

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> …

Member Avatar for PriteshP23
0
590
Member Avatar for chr.s

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 …

Member Avatar for chr.s
0
241
Member Avatar for joshl_1995

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 …

Member Avatar for G_Waddell
0
241
Member Avatar for c_learner

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 …

Member Avatar for c_learner
0
2K
Member Avatar for Matthew N.

In JavaScript (preferably jQuery) how could I create a new element and set its values, but I want it in a specific place In the document. My divs are structured like this : [code]/* container item [item to be created inserted here] */ [/code] I know how to do this …

Member Avatar for Matthew N.
0
170
Member Avatar for jshenn

I am working on a bowling scoring system for a non-profit. They would like to be able to enter up to 9 games worth of scores into a form and have the shot results and game scores captured in a database. I have accomplished the scoring part with an html …

Member Avatar for jshenn
0
159
Member Avatar for mundee

Hi my name is Aida Boling and I am on here trying to meet new friends as well as trying to build an e-commerce website. I am originally an illustrator and my husband and I built a clothing business. At first, I was hard to communicate to manufacturers without any …

Member Avatar for mundee
0
206
Member Avatar for gingerfish

i have this dataset: [CODE]String[][] trainData= { //featIdx////////classInfo {"s", "y", "r"},//0 {"s", "n", "r"},//1 {"w", "y", "r"},//0 {"r", "y", "p"},//0 {"r", "n", "r"},//2 {"r", "y", "p"},//0 {"w", "n", "p"},//0 {"w", "n", "r"},//3 {"w", "y", "r"},//0 {"s", "n", "r"}};//1 int[] trainClassInfo = {0, 1, 0, 0, 2, 0, 0, 3, 0, …

Member Avatar for gingerfish
0
917
Member Avatar for gingerfish

how to find out whether certain elements in an array are equal to one another? for this array: [icode]int array[] = {0, 1, 0, 0, 2, 0, 0, 3, 0, 1};[/icode] i wanna know if elements under the indexes 0, 1, and 9 are same numbers well the easy way …

Member Avatar for NormR1
0
208
Member Avatar for bertm81

Hey All, I have written a script that uses elementTree to work on python 2.4. Took quite a while and worked a threat but now I need to get it working on 2.3.4. I can't upgrade the version of python. Is there an equivelent version of the element tree for …

Member Avatar for bertm81
0
223
Member Avatar for gingerfish

i have an array like this: [B]String[][] data= {"s", "w","s", "y", "r", "r", "y", "p"};[/B] i wanna do some action if there was no similar array element before that particular element, for example, do something if [B]data[0]=="s"[/B], then do something if [B]data[1] == "w"[/B], but skip when [B]data[2]=="s"[/B], because [B]"s"[/B] …

Member Avatar for gingerfish
0
224
Member Avatar for Geowil

Here is my code at the moment: [code] import java.util.Scanner; class menuOperations { String[] fNames = new String[50]; String[] lNames = new String[50]; String fName = " "; String lName = " "; String sFName = " "; String sLName = " "; int dAmount,dTimes,i; Scanner in = new Scanner(System.in); …

Member Avatar for Geowil
0
98
Member Avatar for Sunshineserene

Hi all, I want to parse the elements in my arraylist to double. May I know how to implement that? [CODE]import java.io.*; import java.util.*; public class Array2 { static ArrayList myDouble = new ArrayList(); static String[] temp; static String[][] finalTemp; static String[] arr; static int rows; public static void main(String …

Member Avatar for BestJewSinceJC
0
6K
Member Avatar for iThaos

Hi, I have pretty just started javascript and I have to say it is the hardest language to learn probably due to the lack of official documentation or something like that. If someone can point me in the right direction for documentation, that'll be great. On the other hand, php …

Member Avatar for iThaos
0
160
Member Avatar for echellwig

Hi, I am trying to write elements from a list that I have created to an outfile using a for-loop with this code: [CODE]for j in range(int(Allele[i])): outfile.write(' allelelocus[j] * ')[/CODE] However when I do this I just get a whole bunch of allelelocus[j] in my out file. I was …

Member Avatar for echellwig
0
136
Member Avatar for ohgee

I am currently writing code to populate a select tag with all the hours of the day. I recently rewrote a function that will populate a temporary select tag based off a time passed in as an argument and then return the temporary select at the end. When I attempt …

Member Avatar for sergb
0
272
Member Avatar for ohgee

I am currently trying to make an html link that will add elements (specifically, drop down menus) to the current page when you click it. Since I am adding all the elements to the page using JavaScript, I'm not sure how to set up the link to call a function …

Member Avatar for ohgee
0
1K
Member Avatar for P00dle

I want to remove the JOB node with JOBNAME "One" from the following file: <SETTINGS> <SYSTEM> <VERSION>3.1<VERSION> </SYSTEM> <JOB> <JOBNAME>One</JOBNAME> </JOB> <JOB> <JOBNAME>Two</JOBNAME> </JOB> </SETTING> The code that is supposed to remove it looks like this: [CODE]try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = factory.newDocumentBuilder(); Document doc = docBuilder.parse(new …

Member Avatar for P00dle
0
5K
Member Avatar for colerainescotty

Hi there, I am wanting to find out how to add text to a hidden field in a HTML form. I want to add text from an array, the array holds the information for the caption placeholder for the images. Basically i have an image viewer which lets you scroll …

Member Avatar for colerainescotty
0
241

The End.