I took your code, and removed all cf variable references except "thispage",
by removing, I mean I put my own values in for them. The page seems to run
fine, I do not get any js errors.

-----Original Message-----
From: Che Vilnonis [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 12:20 PM
To: CF-Talk
Subject: I could use a JS expert right now.

Here is a code snippet from a page the is similar to the bottom of a
google.com results page.
I'm trying to use dynamic forms instead of long URLs to go from page to
page. Assume my CF
code is correct. My use of _javascript_ is bombing out. What am I doing wrong?
See below.

      Result Page:

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      Next

<cfloop index="ThisPage" from="1" to="#NumPages#">

<form name="PageSwitch#ThisPage#" action=""> method="Post">
<input type="hidden" name="Level" value="#Attributes.Level#">
<input type="hidden" name="StartRow" value="#Attributes.PageNumberStart#">
<input type="hidden" name="PageNumber" value="#ThisPage#">
<input type="hidden" name="Action">
<td class="generictext"><a
> href=""> #ThisPage#';return true"
true">#ThisPage#</a>&nbsp;</td>
</form>

</cfloop>

The JS errors read:
- Error: document.PageSwitch2.Action has no properties
and - Error: document.PageSwitch2.submit is not a function. Source File:
_javascript_:document.PageSwitch2.submit();

Thanks Che
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to