120 Posted Topics
Re: Hi ManzarOx. You can use the `@font-face` rule to have your own font used. It goes like this, in a typical setup for a font rule you commonly use generic font family such as 'serif' or 'sans-serif', or a more specific type like "arial" or "time new roman". You apply … | |
Re: Hi techyworld, Hope this helps: var intervalID; var gameTimer; // 1000 mS equivalent to 1 second var timeInterval = 1000; gameTimer = function(){ /** ... do anything here ... **/ /** set which should be update etc. **/ }; intervalID = setInterval(gameTimer,timeInterval); /** in case you need to remove the … | |
Re: Hi SMode55, In your sample code: <script type ="text/javascript"> function put(){ $.post('data2.php', { iname:form.iname.value, age:form.age.value, gender:form.gender.value }, function (putout) { ('#idata').html(putout).show(); });} </script> You cannot get a radio button value in this way `form.age.value` as `form.age` would always return a NodeList and not the specific checked or selected element, and … | |
Re: Hi Julia, Please let me know if this works for you: $("img[src*='timthumb.php?src=/&w=0&h=0&zc=1&q=100']").hide() | |
![]() | Re: Hi diafol, It was a typo: function addInputs(){ var str = '<label>MyNumber</label> <input class="numbertexbox" type="number" min="1" max = "20" value="7" /><br />'; var numToAdd = parseInt($('#numinputs').val()); $('#sync').before(str.repeat(numToAdd)); } please check the class name in the input element. It has a missing 't' in 'text'. $('#sync').click(function(e){ e.preventDefault(); // This one has … ![]() |
Re: if you're retrieving it with JS, why not retrieve the path of the image instead? Are you storing the images in DB? Or do you have the images path, located outside your document root? Going back, was the data uri, sent through AJAX? for data URI you have to preappend … | |
Re: hi soapyillusion, Shouldn't the function already pass a string? [jQuery ATTR](http://api.jquery.com/attr/) My guess here, since the selector you used is a class(and no reference HTML code was shown), it returns multiple elements or no element, and you were expecting only one(?). But then it resulted to getting value from an … | |
Re: Hi mr0277, If the problem was going beyond the table's bound, here's the code I edited: [edited code](http://jsfiddle.net/J5uDg/8/) jQuery.fn.setTopAtClickedElement = function (element) { if (element.offset().top + this.height() > jQuery(document).height()) { this.css('top', jQuery(document).height() - this.height() + 'px'); } else { this.css('top', element.offset().top + 'px'); } }; You were always setting the … | |
Re: You can do a resize and move the browser, but the problem is, those are disabled by default. There's also a way to remove the toolbar, but you have to open a window through script, and making it maximize is only available in IE. Also, it can be blocked by … | |
Re: You can use `debugger` for setting breakpoints. it works like this: var num1 = 0, num2 = 0, sum =0; //set num1 to 4 num1 = 4; //set num2 to 10 num2 = 10; //here goes the debugger debugger; //<--- code will stop right here sum = num1 + num2; … | |
Re: This one's a jQuery plugin specific issue. You can check the documentation here: [Validation Plugin](http://docs.jquery.com/Plugins/Validation) I viewed and checked your code. As what you have suspected, it was expecting "select" elements: required: function(value, element, param) { // check if dependency is met if ( !this.depend(param, element) ) { return "dependency-mismatch"; … | |
Re: yes you can. You can select it like this: var choice = 125; $("div[id*=photo" + choice + "]") I have provided a sample see link: [JSFiddle Example](http://jsfiddle.net/QnzXm/) | |
Re: What you need to learn is some CSS, and jQuery. Although jQuery's optional, if you're not that familiar with vanilla javascript, then it's a good choice to use. If you need your content to be fetch from the server, AJAX's needed. Here's a simple code I made to give you … | |
Re: I don't think that's easy, unless you tweak your CSS Design and HTML structure leaning towards a zoomable webpages. And this requires a lot of coding on your part though, and manipulation on each element's quantifiable dimension values. As far as I know major browser's don't give access to this … | |
Re: Yes, it is possible. You can decouple the front-end from OSCommerce. You can then just get the data needed for the frontend from the DB. It's gonna be the point-of-interaction for both ends, just be sure you study well the DB structure of OSCommerce. But you should be aware that … | |
Re: Hi Neha, If you never had a problem before connecting to your email provider, then you should ask then for assistance. They might have internal server problems, or misconfiguration in your part. But if you had none, then you should ask your email provider for the port and address of … | |
Re: Hi Webville, I think you mistook the second 's' character as a dollar sign. Hi Hwoarang, Simplypixie was right, you should make the `$_post` all-caps. Change it to `$_POST` ERRATA: Hi Webville, you were right. LOL Hoarang, you are also echoing the wrong variable. See line 15 and 16 of … ![]() | |
Re: My guess it's somewhere between the transmission of the unordered list, there were differences between the character sets from the source and the destination. In your case, this might be your editor. If you can, set your editor's character set to your preference, UTF8 will suffice. Check your editor's setting … | |
Re: check your line 16 and 17 in your sample: customer_notes // missing comma systype You have a missing comma in your SQL Statement Should be: $sql = "INSERT INTO Customers( customer_name, customer_name_letterhead, customer_notes, systype ) VALUES ( '$value_customer_name', '$value_customer_name_letterhead', '$value_customer_notes', '$value_systype' )"; | |
Re: Start by asking yourself, "What will my app do?" Then, move and put your idea into actions. | |
Re: Hi proglearner, You forget to catch the value. :) Your code should have been done like this: var changeNumber = function(number){ return number + 5; }; var newNumber = 4; // Should catch the returned value from changeNumber function newNumber = changeNumber(newNumber); alert(newNumber); | |
Re: you can create a style tag, my sample's placed on the head. Then from there write the keyframe rules. like this: var styleSheetElement = document.createElement("style"), customStyleSheet; document.head.appendChild(styleSheetElement); // get the appended stylesheet // you can use the returned node from the appendage like this // customStyleSheet = (document.head.appendChild(styleSheetElement)).sheet customStyleSheet = … | |
Re: You can check [Google App Engine](https://developers.google.com/appengine/) if you want as CDN. And yes, you can use dropbox as CDN. | |
Re: @veedeoo: no more, no less. Well said. Welcome to daniweb siddhart | |
Re: if the property "AnswerID" is your array, you can access is like this: $answer->AnswerId["LicenseInt"]["LicenseID"] | |
Re: As diafol pointed, you're comparing the argument $a on its self and not on $b: function compare_tons($a,$b) { // compares string $a['tons'] from $a['tons'] // OR SHOULD THIS BE $a['tons'] from $b['tons'] return strnatcmp($a['tons'],$a['tons']); } ![]() | |
Re: Actually it's hard to decipher what you wan't although your thread's question is understandable; though too generalize. Can you please provide a snippets of your code, and put what you want to do in bullets? If it's ok for you. | |
Re: > It is taxing local resources? **YES** Here's a simple example: **inc.php** <?php echo "Hello World!"; **includePerfCheck.php** <?php $count = 0; $start = memory_get_peak_usage(); while($count<1000){ include 'inc.php'; $count++; } $end = memory_get_peak_usage(); echo "<br />".$start."::".$end; **simpleRunCheck.php** <?php $count = 0; $start = memory_get_peak_usage(); while($count<1000){ echo "Hello World!"; $count++; } $end … | |
Re: Checking your code from your first post, I find these errors and problem: var inputString = prompt("Type in a number or some words, but not both."); // Don't forget the semicolon, it's a good practice on putting one // at the end of each statement var outputString = "" var … | |
Re: I've worked with data from excel, preparing the data and converting it to csv using excel first then exporting it to database; it's the easiest way though. LOL :D But never had a chance to work with unicode. Maybe you should try it first, then if you had a problem … | |
Re: Hi GrapficRegret, Have you checked the script file where you accept the changes(data) if it also has protection not to process incomming data if they're not authenticated and authorized? | |
Re: I'm quite not sure yet, I haven't tested your code yet(kill me for no doing so. LOL. I've just read the API Doc of Raphael, just now), but it seems your arr is just creating another object of paper in your function "setPixel" and "unsetPixel" function setPixel(x, y,arr) { var … | |
Re: Hi Suzie99, Can you add the content transfer encoding field and tell it's binary. `Content-transfer-encoding: binary` `header('Content-transfer-encoding: binary')` Let me know what happened. | |
Re: I believe pritaes was right, you have to check the CSS if you wan't to change the style but if it involves the html structure of the search block, then you have to work with the template; and if it involves data that you intend to display in the browser … | |
Re: That's kinda weird. Uhmm can you do this instead, without clearing the '$' variable in global. (function($){ $(document).ready(function() { $("#icomenu").toggle( function(){ $("#menu").animate({left:"0px"}); }, function(){ $("#menu").animate({left:"-280px"}); }) }); })(jQuery); Are you using different jQuery versions? | |
Re: You can use HTML5's localStorage/ Cookie if you want it to be retained. you can do the following steps 1. Passively/Actively save the option value to localStorage/cookie 2. Refresh 3. Check which radio button was selected, then put a "checked" tag | |
Re: You can use getElementById, as stbuchok's suggested, or you can also explicitly access the value through document.[YOUR_FORM_NAME].[YOUR_INPUT_NAME].value Base on your HTML, here's the ref on your firstname's input value: `document.form1.fname.value` | |
Re: Hi Venter, I've checked sisyphus. Getting data locally should be done on client side, and sisyphus uses automatic restoration of data on inputs. Meaning, you can access them the same you access your input. Your code one clearing data should be done using sisphus' manuallyReleaseData method. What I believe your … | |
Re: Yes, you can. Through the FTP protocol. Here's a sample directory listing, then with regards to downloading the contents, you can use ftp commands to download the contents after parsing the directory list $curl = curl_init(); $ftpURL = "ftp://localhost/" $ftpUsername = "username" $ftpPassword = "password" curl_setopt($curl, CURLOPT_URL, $ftpURL); curl_setopt($curl, CURLOPT_USERPWD, … ![]() | |
Re: For the length of filenames, it depends on your filesystem, but it's advisable to play at 255 max. I believe you won't even get to 100 chars. So a varchar with a size of 255 would suffice. Both Linux and WOINDows got 255 limit, according to this: [Linux File Naming … ![]() | |
Re: Its a ternary operator, derived from C, what is says is this: document.body.clientWidth < 740? //if the client width is less than 740px "740px" : // make it 740px document.body.clientWidth > 1202? // if not, check if it's greater than 1202 "1200px" : // if it is, make it 1200px … | |
Re: Unless have your form in an iframe and your audio's in the parent. Example: <body> ... <div> ... your audio object here ... </div> ... <iframe> <form> ... <button type="submit"> ... </button> ... </form> </iframe> ... </body> | |
Re: you can use session like this <?php session_start(); // make sure to start with this, or else // php won't reload the $_SESSION with the previous data $myTest = 6; $_SESSION["myTest"] = $myTest; //Retrieving Data from the previous session if(isset($_SESSION["myTest"])&&!empty($_SESSION["myTest"])){ $myTest = $_SESSION["myTest"]; } else { // Storing Information for … | |
Re: Any luck? Can you show us you're view if you haven't found any problem with the log. | |
Re: Should an invalid character of "\xa0" be there or we can simply use space "\x20"? or maybe the mod rewrite's not enabled? Although obviously it came right through "<IfModule mod_rewrite.c>" Anyhow, can you check if this runs... withtou the "<IfModule mod_rewrite.c>" RewriteEngine on RewriteCond %{HTTP_HOST} !^(www\.|m\.)?mydomain\.co\.uk RewriteRule ^(\d+)/([^/]+)/?$ index.php?uiid=$1&title=$2 [L] … | |
Re: Meditatoin. That's nice. You're practicing zen? | |
Re: Is the text file local or retrieved on the net? | |
Re: Your SQL query isn't fileterd to get a set of image from a particular category. Current: `SELECT * FROM products ORDER BY date_added DESC LIMIT 10` Proposed: `SELECT * FROM products WHERE category='`[USER_SELECTED_CATEGORY]`' ORDER BY date_added DESC LIMIT 10` | |
Hi Everyone, I've been looking for good javascript projects to join. Are there any projects you can advice? I've researched a lot. (with the help of Google. :D) But would also love to get advices from people who have/had worked at an opensource project here. I would also love to … |
The End.