Page 1 of 1

pgReplace

PostPosted: Tue Jun 02, 2015 10:16 pm
by Kataleena
Hi,

I'm using your method and slightly changing it from your post "Dynamically swap images based on user interaction". Rather then a list I want to use a variable to replace the "1%", however whenever I put a pgRplace in my tb project (on Page load or button click), it stops working, when I run it on my server it either hangs on first page or skip page with pgReplace. I even created new tb file and put a pgReplace and it came up with error "P1 does nto exist".

Any help would be great

Thank kataleena

Re: pgReplace

PostPosted: Tue Jun 02, 2015 11:15 pm
by Clifton
We would probably need to see an example the actually duplicates the error. At first glance, if your placeholder is "1%" I would change this to "%1" to prevent JavaScript from thinking you want to perform a mathematical operation on the search string. I could picture that throwing an error or hanging the browser.