Re: Problems with XML & JavaScript





arun32581@xxxxxxxxx wrote:

I am developing a page for Mozilla/IE which reads xml data and when the
link on the page is clicked it displays the data as a table.
The display is controlled by a Javascript. Everything works fine. But
in the table one of the sections is a URL. I want this to be clickable
so that it takes me to the corresponding webpage.

"clickable"? So you want a link in the HTML document? var link = document.createElement('a'); link.href = 'http://example.com/'; link.appendChild(document.createTextNode('http://example.com/')); // now append the link element to some other element e.g. document.body.appendChild(link);


--

	Martin Honnen
	http://JavaScript.FAQTs.com/
.



Relevant Pages

  • Re: Turners Websites......
    ... there is very little javascript ... The main reason I was looking at using slideshow type picture ... You say that you're not an HTML guy, but you're jumping head first into ... slideshow to display various gallerys on different pages of my site. ...
    (rec.crafts.woodturning)
  • Re: Mobile IE changing display properties in CSS
    ... with - display:; - but I don't like your chances. ... I started javascript only to help small screen users and give them some additional accessibility features: larger fonts, avoid narrow native keypads by using spezialized character selections which are displayed by larger buttons/links, validation at input ... ... Using javascript for porting existing cross platform Web applications to Mobile Web applications seems to be my major design decision failure in the moment. ...
    (comp.lang.javascript)
  • Re: Bad advice from a spammer
    ... If this text is displayed, your email client cannot display ... no HTML and especially no Javascript - ... creamin yer panties before it's time to pop the champagne proper." ...
    (alt.2600)
  • Re: Some jpgs wont display
    ... > Good news, in a way - directly embedded the image in the web page and it ... Something about the javascript slideshow maybe causing the ... But try to display in a javascript ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Displaying messages/errors to users. Opinions?
    ... >> How abt using javascript in ur program. ... would like to display ... > I have been using Session objects in the following ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)