SetXPath works in FF2, but not IE7

consider this XML:
======================================================================
<images>
<image name="01.jpg" width="267" height="270">
<caption></caption>
<tags>
<tag>Family</tag>
<tag>Fun</tag>
<tag>Fred</tag>
</tags>
</image>
<image name="02.jpg" width="267" height="270">
<caption>My Caption here</caption>
<tags>
<tag>Sun</tag>
</tags>
</image>
</images>
======================================================================
I am using that as the dataproivder for a Spry dataset.
I have the following html:
==========================================================================================
<html>
<head>
<title>Gallery</title>
<script type="text/javascript"
src="/bin/spry/includes/xpath.js"></script>
<script type="text/javascript"
src="/bin/spry/includes/SpryData.js"></script>
<script type="text/javascript">
var dsImages = new
Spry.Data.XMLDataSet("/gallery/gallery.xml","/images/image");
var dsTags = new
Spry.Data.XMLDataSet("/gallery/gallery.xml","/images/image[@name='01.jpg']/tags/tag");
function handleNameClick(row)
dsImages.setCurrentRow(row);
dsTags.setXPath("/images/image[@name='" +
dsImages.getCurrentRow().@name + "']/tags/tag");
</script>
</head>
<body>
<table>
<tr>
<td>
<div spry:region="dsImages">
<span spry:repeat="dsImages"
onclick="handleNameClick('{ds_RowID}');">{@name}<br></span>
</div>
</td>
<td valign="top">
<span spry:detailregion="dsImages">
<p>
<img src="/galleryimages/{@name}">
</p>
<p>
{caption}
</p>
</span>
<!---
--->
<div spry:region="dsTags">
Example Of:<br/>
<span spry:repeat="dsTags" >
{tag}<br>
</span>
</div>
</td>
</tr>
</table>
</body>
</html>
==================================================================================
In Firefox2, it works fine, where you click on the image
name, and the image is displayed, but if try it in IE7, it doesn't
work.
I have tracked it down to the "setXPath" function.
If I comment out the "setXPath" IE starts working, but I
loose functionality...
I'll see this up on a URL so you can have a look at it.
Will post the URL shortly

Hey,
The problem in IE isn't that the data isn't updating.
It doesn't get that far. (or did it work for you?)
In FF it does work OK, in IE I get the lovely red error at
the bottom right saying it has no data...
I tried putting the .loadData() as per another thread I
found, and it didn't help.
What is a bit confusing is that the function
"handleNameClick" doesn't fire until something is clicked, but the
error occurs as the page loads.
If I comment out the line like this:
// dsTags.setXPath("/images/image[@name='" +
dsImages.getCurrentRow().@name + "']/tags/tag");
the page loads OK, but the tag display doesn't.
Just found one more thing too.
In IE a JS error is thrown.
Line:19
Char: 75
Error: Condition compilation is turned off
Code: 0
URL:
http://harrisfamily.net.nz/sprydemo/gallery.html
PS: I attempted to change my Screen name, but it seems I
can't! So I'll have to stay "Me" :-)

Similar Messages

  • Flash website working in FF but not IE7

    www.gamespamusic.net is
    working in FireFox but not working in IE7 I dont know whats going
    on here. Can someone help me with this??? Im trying to figure this
    out but its seems like i cant lol. Please HELP

    Ive also had others try it in both IE7 and FF and they come
    up with the same problem where the screen is white in IE7 and it
    works in FF. I dont know what the problem is.

  • Exec(iexplore.exe) works in IE6 but not IE7

    The following statement invoked from an applet works fine with IE6 but not with IE7:
    Process process = Runtime runtime.exec(iexplore.exe slicprint.html))
    With IE6 the browser (iexplore.exe) is launched and the slicprint.html file is rendered (appears on screen).
    With IE7 the program just "hangs", i.e.the browser does not get launched (nothing displays on the screen).

    Welcome to the Sun forums. But..
    >
    The following statement invoked from an applet works fine with IE6 but not with IE7:>
    Process process = Runtime runtime.exec(iexplore.exe slicprint.html))..please refrain from posting such rot. That statement could not compile, let alone run.
    Instead, it is better to [copy/paste errors and code snippets,|http://pscode.org/javafaq.html#exact] or better still, post an SSCCE of failing code.
    Hmm.. and just so we are all clear. Why exactly are you not calling [AppletContext.showDocument(URL)|http://java.sun.com/javase/6/docs/api/java/applet/AppletContext.html#showDocument(java.net.URL)] to achieve this functionality that has been available to sandboxed applets since Java 1.1 and works, most of the time, cross-browser and cross-platform?

  • Font-weight:bold;  - works in firefox, safari, internet explorer 6 BUT NOT ie7

    font-weight bold; on an external css style sheet is working in every browser (INCLUDING ie6) but NOT ie7?
    I just don't get it. It even works in ie6.
    NOTE:   One thing I should mention is that I have a conditional Internet Explorer statement, for a Internet Explorer-specific style sheet that targets ie6 and ie7.
    But I don't think that's the issue because every other style is working properly EXCEPT font-weight:bold. This is absolutely maddening.
    I tried searching around for solutions and the only lead i found was writing  [  font-weight:bold !important;  ]  using that '!important' statement I thought would somehow force ie7 to acknowledge it. But no dice. It failed.
    Here is the accursed code:
    #date {
    font-family: Arial, Helvetica, sans-serif;
    font-weight:bold !important;   /*   bold not showing up in ie7 !!!  */
    font-size:.85em;   /*  Is font-size affecting bold in ie7 ?? - was 85%  */
    color:#000000;
    text-transform:uppercase;
    margin-bottom:-.75em;
    margin-top:6em;
    Again, it works in every browser, including ie6...BUT NOT in IE7.
    Any help will keep me from pulling my hair out. Thanks.

    So it's still not BOLD in ie7.
    - My css is validated.
    - My HTML still shows 19 errors with 3 warnings, which is down from 31 errors with 3 warnings.
    • Although most of these errors are directly from the 'Active Content' JavaScript that Dreamweaver places within your HTML when you insert Flash SWF files on your page. So I don't think I can even correct that.
    • The next series of errors concern the P element. Which I think are because in 5 Paragraphs in a row, I gave them each the same relationship attribute (rel="lightbox[blog02]"). Why else would these paragraphs come up as errors when every other paragraph is perfectly fine? The errors the validator says are happening, aren't happening. It says that certain P tags aren't closed and it's not true, I can see with my own eyes that they are. I think the 'rel' values are confusing the validator?
    All the major errors I took care of though. I replaced all the repeating ID attributes with CLASS attributes. I really thought that would have done it, but no. However, at least I'm no longer getting ID errors when attempting to validate.
    So now I'm stumped.
    I have no clue what to do next with something I thought would be so simple. I mean give me a break. I'm just trying to BOLD a line of text...smh.
    So currently every browser, including the illicit ie6, shows the BOLD...BUT NOT IE7.
    Sorry for the all caps, it's just so ridiculous to me.
    Although I learned that validating your styles and sites is an important step in publishing your site. I also learned how to properly use ID and CLASS attributes.
    However if anyone out there can point me in the right direction, it would still be very much appreciated. Thanks.

  • Rollovers work in Netscape but not IE?

    I have the rolloverbuttons working great with Netscape but when I run my app in IE the images aren't showing up. The jar is loading fine and when I use the default rollovers ( [ROLLOVER]exit ) they work fine, but my images aren't showing up. Thanks for any and all help.
    Jeremy.

    Hytrical wrote:
    The site www.lamps-on-line.com has rollovers and actions created a few years ago in GoLive and now these effects only work in Firefox, but not in Interenet Explorer (IE7) which displays page errors.
    I didn't see any errors when I looked at yourhome page in IE7 (on Vista). So which page elements were producing an error and what was the error you were seeing? Did you delete the cache in IE7 to check whether it was a caching problem? Tools > Internet Options > Browsing history (choose to delete)?
    John

  • Rollovers & actions work in Firefox but not IE

    Hello,
    The site www.lamps-on-line.com has rollovers and actions created a few years ago in GoLive and now these effects only work in Firefox, but not in Interenet Explorer (IE7), which displays page errors.  Is there a way to fix this? I acknowledge that the site needs replacing but while it's still running my client wants it fixed.
    I set up a test page at www.lamps-on-line-com/test.html in which I took off all rollovers and actions, and this loads OK but I really don't want to have to resort to doing this on every page.
    I wondered if it is somrthing to do with 'Doctype'?
    Hope someone can help.
    Stephen

    Hytrical wrote:
    The site www.lamps-on-line.com has rollovers and actions created a few years ago in GoLive and now these effects only work in Firefox, but not in Interenet Explorer (IE7) which displays page errors.
    I didn't see any errors when I looked at yourhome page in IE7 (on Vista). So which page elements were producing an error and what was the error you were seeing? Did you delete the cache in IE7 to check whether it was a caching problem? Tools > Internet Options > Browsing history (choose to delete)?
    John

  • Custom F4 help in a BSP application working in Mozilla but not in IE

    Hi,
    I have created a custom F4 help in a BSP application.
    It is working in Mozilla but not in IE. I tried enabling javascript as well but still it is not working.
    Can someone please suggest a possible solution for this?

    Hi,
    See simmilar discussion in thread /thread/1883519 [original link is broken]
    I think this may be helpful for you.
    Thanks,
    Chandra

  • Why does the counter work in MAX, but not Labview?

    Please help, I have been away from Labview for over 3 months, and I am quite rusty....
    Last year, I successfully configured NI9401 to measure period (seconds) by counting the rising edges of my sensor signal.  Since then, I have aquired a new PC, and loaded all my software into it, including the Labview VI's that successfully worked on the old computer.
    I can see the digital signal using MAX and the test panel for the NI9401, so, I know my wiring and my TTL signal is OK, but, when I try to run the attached VI, nothing happens except the error below..  How do I tell this VI to look for the signal on MOD3/CTR0 and channel 14?
    Thanks. I am sure it is a small adjustment...this worked fine a few months ago...not sure what is wrong now.
    Thanks,
    Dave
    Solved!
    Go to Solution.
    Attachments:
    continuously measure period buffered_singlechannel_forum_feb_23_2012.vi ‏20 KB

    OK, now.  Resolved the issue. The vi is fine, but, some shaky wires were identified...worked in MAX but not in the vi.  Now that the connections have been tightened up, it works for both.  Sorry for the inconvenience.
    Dave

  • Works on emulators but not on mobile devices

    Hello,
    My project works on emulators but not on mobile devices (no image and on Samsung it says "unsupported file").
    Please help, I don't know what to do. My configurations: MIDP 2.1, CLDC 1.1.
    Thanks in advance.
    Edited by: Vitali.pom on Oct 27, 2011 12:01 PM

    Edit: I succeeded to solve it accidentally. I did the following: Sign the jar in Netbeans, clean and build, the jar didn't work, I wiped out the .ks from the jar and clean and build again. Now it worked.
    Edited by: Vitali.pom on Oct 30, 2011 1:28 AM

  • Wifi works at home but not when away from home

    My Wifi works at home but not when away from home, what is wrong?  I thought with a phone plan I didn't need to have a wifi connection.

    You either need WiFi or Cellular (or both). If you have neither, you can't connect to the internet.
    Most people use WiFi at home and Cellular while away from home, or connect to public WiFi networks where there are some.

  • Can't FaceTime anymore?  iPad states wifi connected and iPhone 4 states not connected?  I have wireless in my home? Not sure what happened.  Password works for iPad but not on phone?

    iPhone won't connect to wifi.  iPad is connected.  Password working on iPad but not on phone.  Can't upload software update of IOS 7.1 because phone not connecting to wifi?

    Connect iPhone to computer and open iTunes.  You will be prompted to update to iOS 7.0.  Keep your phone connected until the update is finished.

  • My apple id works on itunes but not on my ipod touch, what gives ?

    my apple id works on itunes but not on my ipod touch, what gives ?

    What are you trying to do on the iPod?
    Have you went to Settings>Store and sign out and then sign back in?

  • Album Art works for most, but not all

    I was reading previous forums on the subject, but no clear answer was given..
    The album art shows up fine in itunes and my library and works for most of my music on my ipod, but how come some album's art does appear? I have it set manually and select 'Get Info' then 'Artwork' and add it from there, then drag in the finished product to my ipod. I've been doing that and it works fine for most of the albums, but every so often, the album art will not appear on my ipod. Am I doing something wrong? I take them all from the same source (amazon.com) but it makes no sense to me how some randomly don't appear.
    I tried deleting the artwork and re-adding it, but nothing happened again. If you could answer why it works for most but not all or how I can get the album art to appear for the ones it will not by re-doing something, it would be appreciated. thanks.

    I encountered the same problem in the beginning. When I compared the size of the original images, the working ones seemed to be smaller in general, so I reduced the size of all covers I intended to upload on the pod to 300x300 pixels.
    This seemed to work - for 2 days. I bought the pod on friday, had pictures on sunday, but on Monday (after the first time the pod was fully discharged) none were left left.
    So I ended searching this forum for related problems...
    And decided to join my problem to this entry.

  • How to send active links in email from firefox. Works in IE but not Firefox... Is there a setting to change?

    how to send active links in email from firefox. Works in IE but not Firefox... Is there a setting to change?
    == This happened ==
    Every time Firefox opened
    == Always

    Check with your web mail service provider for help with that issue.

  • Medical app from Intuit works in IE, but not Firefox.

    Encrypted medical app works in new IE, but not Firefox. Everything works down to the end, and click on "continue" and nothing happens. A tech and I have spent hours on this. Did not work on FF5 or 6. Did not work on old IE, but did on fresh new version with no data files copied in.

    If it works in IE but not FF, then it has nothing to do with the mp3s. More likely it's because of the HTML on the page.
    To start, page is missing DOCTYPE declaration... a MAJOR problem. The DOCTYPE declares which set of rules the browser will use to display the page. Without it, different browsers go crazy or do not work at all.
    http://www.w3schools.com/tags/tag_DOCTYPE.asp
    Validate the html code here:
    http://validator.w3.org/
    You will have to fix all the errors if you want this to work in all browsers.
    Best wishes,
    Adninjastrator

Maybe you are looking for

  • Important Steps to create a report using BI Publisher

    I have been working in OAF and have also made a few applications. I have to create a few reports in applications I have made using OAF. Can I use BI Publisher to generate reports in the applications I have made? I am new to BI Publisher. Can someone

  • Best way to collect all video and picture files for a project

    after effects has this great feature where you choose COLLECT and basically what it does is collects all your media files and puts them in a folder. What the best way to do this in FCP?

  • 20" ACD (Aluminum): Glare and harsh colours

    Compared to my 12" Powerbook G4 screen, I notice that the brightness of the 20" ACD is much higher. Also, the colours on the ACD are harsher (perhaps more saturated is the term?) and not "cool" to look at in comparison with the 12" PB screen. The res

  • Search from header toolbar

    Hi, I have installed Trex. and also I have configured Collaboration. For the serch options: When I click the search button which is available after collaboration, I get a popup window with below error. An exception occurred while processing a request

  • Mac Mail Keeps Crashing after Smart Mail Box setup

    Hi, I was fooling around with the smart mail boxes in Mac Mail, on Mavericks, and now it keeps crashing. Any help would be appreciated. The following id the crash report. I hope this helps. Process:         Mail [958] Path:            /Applications/M