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



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


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!

>I did, but I'm still not quite sure what you're trying
>to accomplish with all this...not from a programmer's
>point of view, but from the end-user's perspective.
>
>What does this application do for the end user?
>
>Anyway, when I tried to use the app, based on your
>instructions, I get an error whenever I click on the
>submit button on the "Cross Reference" form.
>
>"Security:  The requested template has been denied
>access to createObject(java)."
>
>I'll have to study the jQuery in the source code of
>the page to see if I can determine what you're trying
>to accomplish exactly and what the problem may be.
>
>I'm better at hacking together my own solutions than
>hacking in someone else's code with my own, especially
>when it concerns jQuery.
>
>But, let's take it one step at a time.  Tell me, again,
>what the "Cross Reference Form" section is supposed to
>do? Tell me from the end-user's perspective and not from
>a programmer's perspective.  In other words, "The end user
>is supposed to use the Cross Reference form to..."
>
>Rick
>
>No Rick I didnt. Did you look at the application? Is there a way to post
>code here without having huge lengths of text? I dont see any [code] tags.
>
>Again, the issue is coming from have a form on the page that passes SESSION
>variables. Then this jQuery code that displays a struct and array in an
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:340698
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to