Jump to content

RichardRotterdam

Members
  • Posts

    1,509
  • Joined

  • Last visited

Everything posted by RichardRotterdam

  1. 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
  2. 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
  3. 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?
  4. 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
  5. 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
  6. Uhm... the link doesnt work but anyway most likely your function isnt working right the full php function posted might help
  7. 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
  8. 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" />
  9. 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
  10. 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
  11. Plz talk english not dutch
  12. 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
  13. Could you explain exactly what you are trying to do. Javascript runs only in your browser. php on your server
  14. Ah i runned into the same trouble one time. Just use a Textarea the put your source in it will display fine
  15. 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 });
  16. 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
  17. 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
  18. 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?
  19. Just a matter of Ajax. all you need is a php script that searches for the right image and update a div using ajax
  20. I have the same problem here. Too bad the answer wasn't posted
  21. Hmm... guess thats a no
  22. 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
  23. yeah that would work and that does work how ever I want this to work SELECT * FROM cities where city_name="\".$_GET['city']."\"";
  24. 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
  25. Thanks now that is something I can use I'll look in to this and tell wether I made it work or not
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.