This topic is locked

Add custom javascript control on some fields

8/27/2005 9:50:28 PM
PHPRunner General questions
A
artefact author

Hi,
I would like to say first: Well done for this wonderful piece of software and thanks for your great support.
I asked few days ago about a popup wizzard feature alike the calendar for a matter of zipcode and its corresponding cities. I've done it now... so I'd like to patch my generated pages. I mean I want to add an <A HREF="java script:lookup_cities();"><IMG ALIGN=ABSMIDDLE BORDER=0 SRC=search.gif></A> close to my textfield.

Since it's a very good oop programming inside, I'm a bit scared to screw up something.

Of course I will try but if you have planned a kind of easy way to do it let me now.
thanks!

A
artefact author 8/27/2005

I tried...It was easy to add it and it works!
If only I could do it from the PHPRUNNER interface...
I don"t mean PHPRUNNER doing all the job for me.

I'm talking about an option in the "formatting section" to add the javascript function i'll tell him and to include the js files i'll tell him! That's all! (It would be very usefull also to allow in some case a field name to have the name you need rather than some unpredictable valueX)
It would be such a pain in the ass to do everytime I rebuild the project the following things:
-include my 2 javascript files

-add a body onUnload function to close my popup on quit

-add my javascript functions call just before "</td></tr>"

-make sure to check my forms names match (editform, addform...)

-make sure to check my fields names match by viewing html source (value7, value8...)
Of course I couldn't change the sources in my program files folders it would be useless for other projects.
What do you think about it?

admin 8/29/2005

Hi,
we'll add multiple templates support in one of the following versions of PHPRunner.

You'll be able to create several your own templates and choose one of them during project build.