78 Topics

Member Avatar for
Member Avatar for srinivas88

Help with DOM.I am trying to access the nodes acc. to their levels in an xml file.reached upto 3-4 levels then getting a nullpointer exception.Please help...wat datastructure would better suit this.i need to index all the nodes.the xml file is cs.xml given under and the java code below tht. <department> …

Member Avatar for peter_budo
0
225
Member Avatar for Srinivasrajan

How to find errors in a given xml file, for e.g., in the following xml file.... <?xml version="1.0" encoding="ISO-8859-1"?> <bookstore> <book category="cooking"> <title lang="en">Everyday Italian</title> <author>Giada De Laurentiis</author> <year>2005</year> <price>30.00</price> </book> <book category="children"> <title lang="en">Harry Potter</title> <author>J K. Rowling</author> <year>2005</year> <price>29.99</price> </book> <book category="web"> <title lang="en">XQuery Kick Start</title> <author>James McGovern</author> …

Member Avatar for mrame
1
158
Member Avatar for cursedever

Hello everyone! I've been using this simple html parser here: [url]http://simplehtmldom.sourceforge.net/[/url], yes, its working like selecting all the divs with specified id's,but my question is, how about if i'm gonna include to show and select the tags like: <head> </head>, <div> </div>. Any idea how to do this? Thanks :)

Member Avatar for hielo
0
85
Member Avatar for tomccabe

I have an XML file like such: [CODE]<spice> <sections> <contact></contact> <products></products> <people></people> <homes></homes> <harvest></harvest> <contactCopy> <banners><![CDATA[Lots of <u>text</u> with tons of <a href="#">links</a> and <i>other</i> markup.]]></banners> </contactCopy> <homesCopy> <banners><![CDATA[Lots of <u>text</u> with tons of <a href="#">links</a> and <i>other</i> markup.]]></banners> </homesCopy> <productsCopy> <banners><![CDATA[Lots of <u>text</u> with tons of <a href="#">links</a> and …

Member Avatar for hielo
0
290
Member Avatar for scotttheath

I asked this in Google's chromium-discuss list, and nobody replied. I thought this group might have someone who can help. My original post: [B]Persistent values stored in opener.[variable]? [/B] [INDENT]How can I determine what Chrome considers the current page's 'opener'? In all other browsers, assigning a value to a javascript …

Member Avatar for scotttheath
0
160
Member Avatar for Farree123

I am trying to Add rows to my table through DOM. I have two drop downs and one text field in one row. One drop down is populated from database and when the second drop down is populated through Ajax. As far as one row is concerned it is doing …

0
68
Member Avatar for pareshverma91

Hi all, I would like to know which of the above scripting languages is better one. It terms of the control they offer, variety of things you could do with them, easy of use and ongoing trends in the market etc from some expert in these. Thanks for the help.

Member Avatar for kainil
0
176
Member Avatar for brinegart

I want to focus back on the main page from an iFrame that is loaded as an element on the page. I am trying to make a toggle focus using CTRL to go between the two. I am using javascript to navigate the iFrame to different pages. Once the iFrame …

Member Avatar for Lusiphur
0
132
Member Avatar for umandajayo

hi friends how to check file upload control empty or not in javascript? I m try to this way but it is not working [CODE]function Empty(){ var sValue.value = document.getElementById('file_input'); if(sValue == ""){ alert("ERROR: Project Image Should be Uplorded..!."); sValue.focus(); } } <input type="file" name="fileField" id="file_input" > <input type="button" value="Send" …

Member Avatar for umandajayo
0
102
Member Avatar for sainiweb

I have this code which not give me desired result I want output as same http://www.asteraweb.co.uk/wrap_example.html same as like first container have I have this code but its working on no. of word and missing some words in the last <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> …

Member Avatar for fxm
0
161
Member Avatar for Odena

Im trying to run some codes i found of JDom for a home work (super hard to find good material) any way. I was trying to run it on NetBeans and I dont have the library " org.jdom " Anyone, can please give me the right link to download this …

Member Avatar for peter_budo
0
104
Member Avatar for f_atencia

Hi all, I have an XML File: staff_record> <staff> <username>user1</username> <password>password1</password> </staff> <staff> <username>user2</username> <password>password2</password> </staff> <staff> <username>user3</username> <password>password3</password> </staff> </staff_record> I have a form (login.html) and I need to use an ASP page (login.asp) to redirect the user to home.asp when they have successfully logged in, based on the …

0
89
Member Avatar for jasystweb

I am creating controls which are added to the page at run time. As these controls are added I separate them into a UL/LI list by injecting literals assigned as (<ul>, </ul>,<li>,</li>). The page in question uses a master page template. The ul/li function is called in the page_load event …

Member Avatar for jasystweb
0
243
Member Avatar for InfernalAngel

Hi guys. Recently I had face an interesting issue when trying on Hijacking Event on an Element here is what I've got: So if you want to Hijack an Event first you have to check that event-handler has been set for that particular element or not rite ? ( you …

0
104
Member Avatar for lonestar23

How would I go about passing a user agent when requesting an external xml feed from a 3rd party web service. Need to pass the user agent or else the feed produces an error. I am using DOM [code] <?php $request1 = 'http://www.abc123.com/webservice/this.xml'; $requestIT1 = $request1; $response1 = new DOMDocument(); …

Member Avatar for lonestar23
0
277
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
Member Avatar for Ghodmode

Does anyone know where I can find a complete list of DOM/DHTML event types documented? I'm trying to learn more about advanced event handling in JavaScript and I'd like to find lists of event types that I can attach/add event listeners to. I've been searching around and I've found a …

0
119

The End.