- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
Musician, Geek, Manager. In that order.
- Interests
- Web Development Music creation
- PC Specs
- MacBook Pro 15" Lenovo ThinkPad T61
14 Posted Topics
Re: Hi, since you are writting an AIR application you can specify the minimum and maximum width and height of your application in the application.xml file located in your root project folder. Look for the <minSize> and the <maxSize> tags and change it for your own sizes. HTH .::AleX::. | |
Re: Search for javascript push() method in the Array object. A good reference is here: [url]http://www.w3schools.com/jsref/jsref_obj_array.asp[/url] HTH | |
Re: Hi, IMHO, JSON is great, it has the same good benefits of structuring data as in XML but with the advantage that you can directoly interact in the front end using JS (that's what the two first letters of JSON means :-) ). I use it everyday to store information … | |
Re: Hi, save yourself time and code lines using a library. top developers has done the hard work sniffing browsers and such. I can recomen jQuery, so your can use an ajax request that is crossbrowser with a single line of code: [code] $.ajax(url, data, callback) [/code] HTH | |
Re: 1.- sessions are handled by a server (normally) after credential validation against a directory server (LDAP, AD, Domino, etc). What you can do is preserve that state by invoking a valid autenticated page using a periodic polling with javascript. Take a look at setTimeout JS funciton. You can use a … | |
Re: try using jQuery, like this at the end of your document just before closign body [CODE] <script type="text/javascript"> $(document).ready(function(){ $("head").append("<script src='stat.php?loc=" + window.location + "'><//script>") }) </script> [/CODE] For sure there's some better way to perform this but give it a try and see if it works. HTH .::AleX::. | |
Re: Hi, to do that you need Conditional COmments: [CODE] <html> <head> <title>Conditional comments on IE</title> <style> p{ font-family:verdana, arial; font-size:16px; margin:20px auto; background:#666; color:#ccc; padding:10px; } </style> </head> <body> <p>This text is available for any browser</p> <!--[if IE]> <p>This text is available ONLY in Internet Explorer </p> <![endif]--> <!--[if IE … | |
Re: [QUOTE=UberJoker;1154128]Hey Guys. I cant actually think of a way to do this. Let me rephrase my question. I essentially want a perl script to run based on something that i am doing in javascript. for example: <javascript> if(x == 1) { then run the perl script. } </javascript> i dont … | |
Re: [QUOTE=sassenach;1154320]nope. still empty.[/QUOTE] Hi, before sending your form you need to explicitly set the value of your form field with the rich text editor. like: document.forms["formname"].fieldName. value = $(RTObject).value //it depends on what editor you are using. after that you can submit the form. HTH | |
Re: Hi, the $(document).ready() is executed when the DOM is ready to be used when loading a page. This is not valid when loading a page using AJAX. So, the solution is using a callback after loading the first div: $("#sec").load (url, callback); your new code should look like this: index.php … | |
Re: [QUOTE=morecrab;926885]Hi, i just want to know how to check the button i push. So, i.e. if i push Prev Button, it will show "You push Prev button" and if i push Next Button, it will show "You push Next button" ps : Any related reply will be appreciated[/QUOTE] Hi, I … | |
Re: Hi, the first A in Ajax is for asynchronous, BUT, you can set the call to behave Synchronous, so your alert will wait until the request is finished. Just add the following to your request options: asynchronous: false, so your new code will look like: [QUOTE=ablitz;914304] [code=JavaScript] new Ajax.Request("categories-inset.php", { … | |
Re: Let's say you have: [CODE] <form> <table id="myTable"> <tr> <th>Name</th> <th colspan="2">Phone</th> </tr> <tr> <td><input type="text" name="newname" /></td> <td><input type="text" name="newphone" /></td> <td><input type="button" onclick="addContact()" value="Add"/></td> </tr> </table> </form> [/CODE] You can create a function like: [CODE] <script type="text/javascript" languaje="javascript"> function addContact(){ var myTable = document.getElementById("myTable"); var newTR = document.createElement("tr"); … | |
Hi all, I'm just wondering..... Is there any way to know what variables are associated to a given kind of data type or class (when using prototype for example)? Let me explain. if I have: // Javascript: var myVar = new Array(); var myObj = new CustomPrototypeClass(); So, in some … |
The End.