Having trouble with page refresh after targeting a spry data set from external url

ok I have a link <a href="als.htm?row=10" (when you click
on Insurance Agent forms button) on my index page
http://www.nmprc.state.nm.us/index.htm
and I finally got it to open the als page (
http://www.nmprc.state.nm.us/als.htm)
with row10 open.......Yeah!!!!!!!!!!!!
but.....
yep....with me there is always a but....
after the page loads from clicking on the button on index,
with row 10 active, it no longer loads correctly by itself.....I go
to the menu and refresh the page by loading the als.htm url fresh,
the page no longer loads right.
var dsAgents = new Spry.Data.XMLDataSet("als.xml",
"agents/agent/name",
{sortOnLoad:"name",sortOrderOnLoad:"ascending"});dsAgents.setColumnType("name",
"html");
var params = Spry.Utils.getLocationParamsAsObject();
//Set an observer so that when the data is loaded, we update
the current row to the url param value
dsAgents.addObserver({ onPostLoad: function(ds, type) {
dsAgents.setCurrentRow(params.row); }
});

ok, I changed the code to the below and the page functions as
expected but with 2 errors .......I have no idea how to fix them
the page is
http://www.nmprc.state.nm.us/als.htm
one error is about the code and one is about the menubar
var params = Spry.Utils.getLocationParamsAsObject();
//Set an observer so that when the data is loaded, we update
the current row to the url param value
var defaultRowNumber = 0;
var defaultObserver = {};
defaultObserver.onPostLoad = function(ds, type)
ds.disableNotifications();
ds.setCurrentRowNumber(defaultRowNumber);
ds.enableNotifications();
// This is a one-shot observer. Let this notification
complete
// before removing it from the data set's observer list.
setTimeout(function(){ ds.removeObserver(defaultObserver); },
0);
if (typeof params.row != "undefined")
defaultRowNumber = parseInt(params.row);
dsAgents.addObserver(defaultObserver);

Similar Messages

  • Anyone else having trouble with missing ringtones after upgrading to 8.1.1

    Anyone else having trouble with missing ringtones after upgrading to 8.1.1?

    Try resetting the keyboard dictionary
    Settings>General>Reset>Reset Keyboard Dictionary

  • Anyone else having trouble with FCPX crashing after the OSX update?

    Anyone else having trouble with FCPX crashing after the OSX update? It NEVER crashed until the update. The night before last it crashed 20 times in 45 minutes. I can't finish my project because of it.
    Retina, Mid 2012
    Processor  2.3 GHz Intel Core i7
    Memory  8 GB 1600 MHz DDR3
    Graphics  NVIDIA GeForce GT 650M 1024 MB
    Software  OS X 10.9 (13A603)

    therealamaru wrote:
    I don't understand the question. I am simply editing.
    There are some patterns of crashes that suggest possible causes and fixes; some users report crashes when FCPX is in the process of loading; others while importing/exporting, etc. Asking to narrow the list of possibilities.
    Suggest starting with three things:
    1) Update the software from the APp Store  if need be.
    2) Trash preferences.
    3) Repair permissions.
    Russ

  • HT4623 Is anybody having trouble with your ringer after installing OS 6.0 and using the new GPS system?

    Is anybody having trouble with your ringer after installing OS 6.0 and using the new GPS system?

    The good (?) news is many people are have OS 6.0.1 wifi problems.
    I could not connect to my home network.  What eventually worked for me (twice now), though it makes no sense, is to go to the particular connection you want to use, hit the little blue arrow on the right to get the details screen.  Scroll down to the bottom and change "HTTP Proxy" from "None" to "Auto".  Then leave the "URL" field that pops up blank. 
    This should not work.  However, it has for me where many other suggestions have not. 
    *shrug*
    Best of luck.

  • Is anyone having trouble with accessing email after upgrading to iOS 6?

    Is anyone having trouble with accessing email after upgrading to iOS 6?

    Is anyone having trouble with accessing email after upgrading to iOS 6?

  • TS2446 Hello, I'm Bethany and I'm having trouble with my apple ID I tried to buy something from he app store and they assed me some questions and anyway i have locked my account and don't know how to unlock any help with be very helpful thanks.

    Hello, I'm Bethany and I'm having trouble with my apple ID I tried to buy something from he app store and they assed me some questions and anyway i have locked my account and don't know how to unlock any help with be very helpful thanks.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Anyone having trouble with internet connection after downloading mountain lion

    After installing Mountain lion to my mid 2011 imac 21" I am having trouble with my internet connection.  Anyone else have to deal with this?

    Are you on 10.8.2 as ypur profile says? If so, it's worth updating to 10.8.3 which was released last week.
    http://support.apple.com/kb/DL1640
    Here's a link to some suggestions that helped some users with similar problems in Lion. May still be relevant to MLion. Also check the links within the article:
    http://osxdaily.com/2011/11/06/lion-wi-fi-problems-solution-mac/?utm_source=feed burner&utm_medium=feed&utm_campaign=Feed%3A+osxdaily+%28OS+X+Daily%29&utm_conten t=FaceBook
    Also when I had wifi problems in the past, creating a new network location resolved it:
    http://support.apple.com/kb/HT5289 (under the heading 'Making New Locations'.
    I've also seen threads where users with wifi problems have successfully solved them by changing the channel in the router's wifi settings.

  • Spry Data Set, include external page and javascript

    I have a problem with Spry Data Set... I have necessity to
    include a html page with javascript functions (static html page) in
    another but doesn't work.
    This is an example with "Elevator Panel Magic" extension
    (projectseven.com):
    Home page with dataset (home.html)
    <!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"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    <title>Untitled Document</title>
    <script src="../SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/SpryHTMLDataSet.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.HTMLDataSet("include_header.html",
    "header_menu_test");
    ds1.setColumnType("column0", "html");
    //-->
    </script>
    <link href="p7epm/epm1/p7EPM01.css" rel="stylesheet"
    type="text/css" media="all" />
    <script type="text/javascript"
    src="p7epm/p7EPMscripts.js"></script>
    </head>
    <body>
    <span spry:detailregion="ds1">{column0}</span>
    </body>
    </html>
    External page with elevator panel magic
    ("include_header.html")
    <!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">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <div id="header_menu_test">
    <div id="p7EPM_1" class="p7EPM01">
    <div id="p7EPMt_1" class="p7epm_trigs">
    <ul>
    <li class="t1"><a href="#p7EPMc1_1"
    id="p7EPMtrg1_1">New Heading Text 1</a></li>
    <li class="t2"><a href="#p7EPMc1_2"
    id="p7EPMtrg1_2">New Heading Text 2</a></li>
    </ul>
    <div class="p7epm_ie5clear"> </div>
    </div>
    <div id="p7EPMdw_1">
    <div id="p7EPMw1_1" class="p7epm_cwrapper">
    <div id="p7EPMc1_1" class="p7epm_content pan1">
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing
    elit. Quisque congue tristique eros. Nulla facilisi. Quisque sem
    mauris, ullamcorper ac, gravida id, mattis id, sapien. Nullam
    adipiscing enim dapibus felis. Fusce a nisi in odio pulvinar
    fringilla. Nunc blandit interdum metus. Duis leo nunc, sollicitudin
    ut, fermentum congue, pharetra eu, massa. Suspendisse potenti.
    Morbi commodo mauris. Ut at pede. Ut id nisi. Donec scelerisque
    urna quis ligula. Praesent est. Vestibulum scelerisque. Curabitur
    quam. Fusce rhoncus pellentesque ipsum. Aenean venenatis metus ac
    quam. Maecenas lacus lacus, sagittis vitae, congue at, euismod eu,
    urna. Maecenas vitae purus. Praesent eros lectus, porta et, semper
    nec, molestie eget, tortor.</p>
    </div>
    </div>
    <div id="p7EPMw1_2" class="p7epm_cwrapper">
    <div id="p7EPMc1_2" class="p7epm_content pan2">
    <p>Lorem ipsum dolor sit amed sed diam nonummy nibh
    euismod tincidunt ut. Duis autem vel eum iriure dolor in hendrerit
    in vulputate velit esse molestie consequat, eu feugiat nulla at
    vero eros et accumsan et odio qui blandit praesent luptatum augue
    duis dolore te feugait nulla facilisi.</p>
    <p>Lorem ipsum dolor sit amed sed diam nonummy nibh
    euismod tincidunt ut. Duis autem vel eum iriure dolor in hendrerit
    in vulputate velit esse molestie consequat, eu feugiat nulla at
    vero eros et accumsan et odio qui blandit praesent luptatum augue
    duis dolore te feugait nulla facilisi.</p>
    </div>
    </div>
    </div>
    <!--[if IE 5]><style>.p7epm_trigs a {height:
    1%;}.p7epm_ie5clear {clear: both;}</style><![endif]-->
    <!--[if IE 6]><style>.p7epm_trigs, .p7epm_trigs
    a {height: 1%;}</style><![endif]-->
    <script type="text/javascript">
    <!--
    P7_opEPM('p7EPM_1',1,1,1,0,0,1000,0);
    //-->
    </script>
    </div>
    </div>
    </body>
    </html>
    **********************

    I think it is a bit too late you're 'finally experimenting' with Spry.
    Spry has been deprecated from Adobe and is now been made Open Source on GIT - meaning Adobe will no longer officially support Spry tools. The next major release of DW will most probably get rid of Spry, for good.
    Read here: http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l
    jQuery is the way ahead. You may want to switch to jQuery - since anyway you've mentioned you're just 'experimenting' at the moment. That way, you're not spending time on something that is no longer being supported/ developed by their developers.
    -ST

  • Having trouble with page numbering in Pages

    I moved a document from Word to Pages.  Now the page numbering is outside any text box, footer, table, etc., and cannot be accessed for editing.  I cannot click on it.  I tried fooling around with page number functions in Pages, and it merely adds a second set of page numbers.  I revealed the formatting and background information to no avail.  It is as if the page numbers do not exist, except that they are showing up on screen.  Has anyone ever had this problem?  How did you resolve it?

    JT,
    This is a long-standing conversion issue, where Word page numbers sometimes turn into un-editable graphic objects in Pages. To get rid of them, do the following:
    Arrange > Make Background Objects Selectable
    Format > Advanced > Make Background Objects Selectable
    Command-Drag a selection box from the margin diagonally across the page number object to select it
    Press Delete
    That usually does it. If you have a multi-section document, you may have to do it more than once.
    Jerry

  • Anyone else having trouble with Pages freezing on iPad 2?

    In just the last few days, Page documents are freezing. After I create a document it won't let me name it, file it with others, I don't see the little blue line telling me the document is being saved etc. I haven't lost anything but the program is not acting in a normal way. I used Pages daily.

    I, too, had long waiting times. Here's what worked for me.
    As I went through some of my Pages and Numbers documents, I got warnings that there were sync discrepancies (differing versions in iCloud and on my iPads and laptop). So, I removed everything from iCloud Drive using my laptop (saved to local folder). I let my iPads sync so they removed all the iCloud-based documents. On the laptop I went through and forced everything to the latest file format (latest Pages and Numbers on Yosemite) by re-saving, then copied everything back into iCloud Drive. My iPads both updated within seconds and everything now syncs quickly.
    Don't know if eliminating sync discrepancies is the solution, but it seems to have worked in my case. Hope it might help others.

  • Help! Having trouble with camera app after update to iOS 5.1.1

    I'm having a big problem with my Itouch. I've never jailbroken it or any of that crap. Here's the deal. I just updated to 5.1.1 and I tried to record a video but whenever I press the record button it starts recording but can't press it again to make stop. So, press the menu button then I tried going back to the camera app then I hit record now this time it just freezes!!!!!  

    My IPhone 5 camera is locked after the new update!

  • Anyone else having trouble with facetime freezing after installing ios 8

    Since installing IOS 8  ihave had truoblw with facetime freezing. this is using my ipad 2.

    I Have this same problem, among others After updating my iPad 2 to iOS 8:  sluggish iPad,! "No Service" indicator unless I reboot iPad, are a few of the "quirks" that are going on.

  • Has anyone else been having trouble with Pages crashing?

    Often when I open my MacbookPro from sleep, I get "PAGES QUIT UNEXPECTEDLY". I make a living as a writer, so I often work with many documents open at the same time. What should I do?

    Have you updated Pages to 4.2 since you upgraded to Mountain Lion. Also, the iWork apps iin Mountain Lion seem very sensitve to permissions issues & it's a very good idea to use Disk Utility to repair permissions.

  • Is anyone having trouble with airplay mirroring after the 5.2 update?

    I just updated my apple tv to 5.2 and now I experience freezing of the video after awhile. I can watch streaming content and then the video will stop but audio continues. I'm using an imac with mountain lion and i use a dual band n router.

    Hello there, T'Quananmy
    The following Knowledge Base article, although written for iPhone is applicable for troubleshooting issues with the speaker on your iPad as well:
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/ts5180
    Verify that the volume is set to a level you would normally be able to hear.
    Ensure that there is nothing plugged in to the headset jack or the dock connector.
    If the iPhone is in a protective case, make sure that the speaker port isn't blocked by the case.
    Make sure that the speaker and dock port aren't clogged with debris. If necessary, clean it with a clean, small, dry, soft-bristled brush. Carefully and gently brush away any debris.
    If an audio issue occurs when using a specific application, try testing other applications to see if the issue persists.
    If the iPhone is paired with a Bluetooth headset or car kit:
    Try turning off Bluetooth.
    If you experience difficulties with the Bluetooth feature, follow these troubleshooting steps.
    Restart the iPhone.
    If restarting doesn't fix the issue, ensure that your iPhone is updated to the latest version of iOS.
    If the issue is not resolved, please  contact Apple Support.
    Learn more about troubleshooting iPhone hardware issues.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Anyone having trouble with their icons after the 10.7.4 Lion update?

    I updated the software yesterday and now the icons for my apps are blank pages. What's going on?

    Mucked up installation. DL the COMBO updater from http://support.apple.com/downloads/ and reinstall it.

Maybe you are looking for

  • Qosmio G55 CPU's running slow on Vista 64 and Win 7 (64), no hardware or software problems found

    I have what I believe is a hardware problem causing slow cpu clocking and 100% cpu utilization, even though the processors and hardware check out okay and I can't find any performance problems other than the slow cpu's. Any ideas where else to look,

  • Rebates very urgent

    hello, we maintain account key X and accrual key Y in the pricing procedure for a condition type and in VKOA we have place two put two gl accounts for a combination can any one tell that if i want that for X glaccount A shud come and for Y gl account

  • 13" MBA price difference

    Am I really reading the Apple site correctly and the $300 price difference between the two base 13" models is only due to a 128GB increase in SSD capacity? Please tell me there's something I'm missing here. That seems like a ridiculous premium for an

  • Data display from English language to German language

    We have got a requirement to replicate existing data from English language into German language. Please let me know what are options available to replicate the data into another language. Thank you.

  • CRM Career Option ?

    Hi,    I m a SAP SD Certified guy with one year exp. on SAP SD Support and Five years experience as a Sales and Marketing Executive. But it seems that the in the current market there is very optimal need of SD Consultants , companies are asking for m