pgReplace

Help for using specific functions

pgReplace

Postby Kataleena » Tue Jun 02, 2015 10:16 pm

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
Kataleena
 
Posts: 49
Joined: Sun Feb 23, 2014 10:05 pm

Re: pgReplace

Postby Clifton » Tue Jun 02, 2015 11:15 pm

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.
Clifton
Site Admin
 
Posts: 732
Joined: Tue Jan 14, 2014 1:04 am


Return to Function Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron