Yes, I believe I see what you're trying to do.

I'm getting this error now:

"document.getElementById('results') is null"

which means that you don't have an element on the
page, such as a div with the id of results:

<div id="results"></div>

Should that be on there somewhere?

Rick

-----Original Message-----
From: Teed Younger [mailto:[email protected]] 
Sent: Wednesday, January 12, 2011 4:45 PM
To: cf-talk
Subject: Re: trying to pass ajax complex strings within another form


Alright, changed and uploaded to the server. Were you able to get a feel for
what I'm trying to do based on my last post?..lol
>Ok, first...
>
>In the source of builderAction.cfm, let's change
>one bit of Javascript (js) so we can get rid of an
>error being thrown by the js.
>
>A couple of lines beneath the html:
>
><p><strong>Alternate Part Numbers:</strong></p>
>
>You've got:
>
><script language="javascript">
>     document.getElement('results').innerHTML = "See I just changed the
>content!";
></script>
>
>change the code in between the script tags to read:
>
>document.getElementById('results').innerHTML = "See I just changed the
>content!";
>
>Let me know when that's updated and we'll
>run it again.
>
>Many times when I'm running Javascript, even a little
>error will bring everything to a halt beyond that.
>
>Rick
>
>
>
>Ok, fist things first. Dont know why the security error was being thrown. I
>commented out:
>
><cfdump var="#item#" label="Item Name #itemName#">
>
>that line and it seems to be fine now.
>
>Now, the application as a whole is simply for creating .html pages using
>this "page builder" of sorts. Using user defined form inputs, storing them
>as session variables, saving those as form variables to pass to the action
>page so that the user can "preview" how the page looks before finalizing
the
>file and saving to our shared folder in the office.
>
>All that works fine. But the need arose to somehow incorporate a way to
>generate lists of varying lengths and most likely several different lists
on
>the same page. In other words, there could be one list or there could be 20
>lists on any given page.
>
>Originally, I had worked up a way, with my limited coding experience and
>definate lacking advanced coding knowledge, of just using a simple text
>area. The user could enter text and use two different delimiters to specify
>the starting and ending of one to another lists.
>
>Of course you can see how problematic that would be.
>
>So, someone suggested I use some jQuery and ajax, of which I have NO
>knowledge at all. lol
>
>That brings us to the present. The Cross Reference Form section is a
>seperate form completely from what the other FORM variables were doing.
>
>If you view the application and populate the forms fields, since I removed
>that error, you can then click the submit button BELOW the cross reference
>form section. This, I thin is just a click event in the ajax function that
>will then display the values in a list with the first one(Vendor) in a
>heading tag and the products in <li> tags.
>That works fine as well, but then to pass ALL the form variables as well as
>the cross reference "lists", is where the error gets generated.
>
>lol I know again this must be confusing to you. I wish I could explain it
>much better. If you need to see the cource code, I can post it, but again,
>its quite a bit. Thanks for your time and help!
>
>html
>>list. SO when I try to go to my builderAction.cfm, it throws the error
>>because the url.data is undefined. 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340701
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to