User Profile
Collapse
-
Thank you very much this was a lot of help -
I should probably give some background to my problem.
The users pass a string with a url
e.g. "http://www.somedomain. com
within the url they set some parameters ${language}
The code then searches the code finds these strings and replaces them with the correct variable.
Because its going to be dynamic, I require the code to see if the parameter exists and if so replaces it.
I believe...Leave a comment:
-
Hello Oralloy,
Thank you for your reply.
Lookign at it from your perspective I can see where I am making the mistake
I believe what I really require is to split the string before ${ and then split it after }
where
url3[0] = http://someurl
url3[1] = ${language}
url3[2] = somemore.comLeave a comment:
-
Java split regex
Hello,
I want to split a string starting from ${ and ending with }
where anythign can be inbetween ( ${*} )
I have tried
However I am getting no luck with it,Code:String url2 = "http://someurl${language}somemore.com"; String[] url3 = url2.split("\\$\\{\\w\\}");
help would be greatly appreciated -
I have a long way to go in understanding ajax, and it's qwerks, but you have given me a good start :-)
Thank you for all your help.Leave a comment:
-
Hi,
sorry for the late reply, work mounted up for the past week.
Here is a link to a zip file containing the code I use.
http://freshrob.com/index.zip...Leave a comment:
-
-
Still No luck, I think I may have to try a different method for getting the results that I want. Thank you for all your helpLeave a comment:
-
Hello,
So far none of my code is evaled.
I have tried dynamically adding the javascript files, prototype and lightbox but with no luck.
Hopefully this will help:
index page loads java.js, prototype.js and lightbox.js
java.js puts houses.php into the div hlist on the index page
One other piece of information is that the javascript for lightbox is loaded using a class,...Leave a comment:
-
I have an index.php containing:
...Code:<title>index page</title> <!-- CSS !--> <link rel="stylesheet" href="css/lightbox.css" media="screen,projection" type="text/css" /> <link rel="stylesheet" href="css/website.css" media="screen,projection" type="text/css" /> <!-- JavaScript !--> <script
Leave a comment:
-
No am still looking, and trying to find ways around it, though nothing has come upLeave a comment:
-
AJAX loading external page into div, no javascript
I have been trying to fix this issue the whole of today and have gotten no where.
I am developing a new website, and wanted it to display a webpage in lightbox and have an external page added to the main page, both worked successfully apart, but it wasn't until I combined them that I have had an issue.
My aim was to have ajax add the external page into a div and then load lightbox from that div, though that is where the problem...
No activity results to display
Show More
Leave a comment: