RichardRotterdam
Members-
Posts
1,509 -
Joined
-
Last visited
Everything posted by RichardRotterdam
-
Allow Interger inputs only on an input box
RichardRotterdam replied to jkkenzie's topic in Javascript Help
I think this wheel probably has been invented like a million times. search and you shall find a script that already does this http://www.cambiaresearch.com/c4/029c978b-aac5-472e-97a8-95b256f5febd/How-Can-I-Use-Javascript-to-Allow-Only-Numbers-to-Be-Entered-in-a-TextBox.aspx -
Image popup that closes when next pic is clicked
RichardRotterdam replied to mikemessiah's topic in Javascript Help
try not using js popups these things are a bit old fashioned try using lightbox or a simple div overlay that way you wont risk trouble with a popup blocker -
updating sessions via hidden iframes ? Good or Bad?
RichardRotterdam replied to jade's topic in Javascript Help
you dont need a iframe to do anthing like that try looking up ajax examples all you want to do is set a server session am i right? -
Render a string instead of template file with Smarty
RichardRotterdam replied to Cobby's topic in PHP Coding Help
I assume these templates are files stored in some folder. Why not get all the files (whether that is from a database or folder) place them in an array and then do the random function -
Thats not really xml thats SOAP well it is xml but this one uses a SOAP syntax if it were a simpler xml you could use a xml parser I think you will need a soap extension installed on your server and then you can get the data and then simply make a SoapClient object http://devzone.zend.com/article/689-PHP-SOAP-Extension
-
Uhm... the link doesnt work but anyway most likely your function isnt working right the full php function posted might help
-
I don't think this is really a php issue rather a css or html thing just check out the source in your browser what goes wrong that will give you an answer to what is wrong since php is serverside there is no difference in the output in firfox or ie
-
I'm sure this will help you out this is a fully working example <script src="mootools-release-1.11.js"></script> <script> window.addEvent('load', function() { //the $("myimage") equals the document.getElementById("myimage") method mootools style var imageElement=$("myimage"); //create an image object var image= new Image(); //set the source of the image object image.src = $("myimage").src ; //alert the image height alert(image.height); }); </script> <img id="myimage" src="2426402588_f7486e0eb2.jpg" />
-
uhm can i conclude that you have a > character that you want to replace with a \n if that is so why not use string replace function
-
Yes that is actually extremely easy. you just need to change the src or innerHTML on a click event. http://www.cryer.co.uk/resources/javascript/script4.htm#ChangingHTMLUsingDIV click the image button
-
Plz talk english not dutch
-
Trying to modify Existing Script For pop up viewer
RichardRotterdam replied to designedfree4u's topic in Javascript Help
Try looking for modal script. The best ones I used so far are with either using prototype or mootools framework. oh to think of it let me just send you a link to show you an example http://www.wildbit.com/labs/modalbox/ click the start demo -
Could you explain exactly what you are trying to do. Javascript runs only in your browser. php on your server
-
Ah i runned into the same trouble one time. Just use a Textarea the put your source in it will display fine
-
Correct me if i am wrong but you want the actual size of the image am i right? There is 2 ways to solve that problem. 1. get the image width server side. 2. Get the image width when the page has fully loaded. I found a quick way to solve that using mootools /* Load Event fires when the whole page is loaded, included all images */ window.addEvent('load', function() { //in here you can execute your function to get your image width since the page has fully loaded });
-
Checking a file upload field isn't empty
RichardRotterdam replied to graham23s's topic in Javascript Help
I think this prob does need serverside scripting. Would it be possible with some kind of ajax script. I usually make a seperate page for uploading images and text fields this is the way it is usually done on any site. But it would be nice to have it all in one form and validate it all at once -
your solution would be ajax related. when you selected a value form the first pulldown you will have a php action to fetch records from your database
-
[SOLVED] image source from function
RichardRotterdam replied to adam291086's topic in Javascript Help
Ok let me try to figure this one out. Youre trying to change the src attribute of an image right? so for example <img scr="an_image.jpg" /> here you want to change an_image.jpg is that it? -
Just a matter of Ajax. all you need is a php script that searches for the right image and update a div using ajax
-
I have the same problem here. Too bad the answer wasn't posted
-
Hmm... guess thats a no
-
Hi, Does anyone know a link to a good tutorial how to Chunk a large XML file into smaller XML files. I want to read a XML file on a remote server then store it in a database. Creating smaller XML files from the large one would solve my problem. Thanks in advance
-
yeah that would work and that does work how ever I want this to work SELECT * FROM cities where city_name="\".$_GET['city']."\"";
-
Hi, I have a prob which pretty much makes me wanna bang my head agains the desk. But here is the problem in the URL is pass a variable m%c3%bcnchen for example http://localhost/page.php?city=m%c3%bcnchen now i want the querry do a select query as followed SELECT * FROM cities where city_name="münchen" when i do this <?php echo($_GET['city']) ?> it displays münchen and also in the source any suggestions and yeah i know using city id should be the way but i cant do that
-
Thanks now that is something I can use I'll look in to this and tell wether I made it work or not