120 Posted Topics

Member Avatar for ManzarOx

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 …

Member Avatar for <M/>
0
382
Member Avatar for techyworld

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 …

Member Avatar for JorgeM
0
126
Member Avatar for SMode55

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 …

Member Avatar for gon1387
0
596
Member Avatar for Julia25

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()

Member Avatar for gon1387
0
141
Member Avatar for diafol

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 …

Member Avatar for diafol
1
249
Member Avatar for jackparsana

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 …

Member Avatar for gon1387
0
653
Member Avatar for soapyillusion

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 …

Member Avatar for soapyillusion
0
130
Member Avatar for mr0277

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 …

Member Avatar for gon1387
0
255
Member Avatar for jacob21

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 …

Member Avatar for jacob21
0
6K
Member Avatar for riahc3

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; …

Member Avatar for riahc3
0
252
Member Avatar for barnamah

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"; …

Member Avatar for gon1387
0
230
Member Avatar for designershiv

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/)

Member Avatar for gon1387
0
148
Member Avatar for kimmi_baby

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 …

Member Avatar for bestwsd
0
114
Member Avatar for Proglearner

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 …

Member Avatar for Proglearner
0
236
Member Avatar for rajurare

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 …

Member Avatar for gon1387
0
152
Member Avatar for neha05

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 …

Member Avatar for neha05
0
217
Member Avatar for hwoarang69

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 …

Member Avatar for diafol
0
181
Member Avatar for TonyG_cyprus

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 …

Member Avatar for TonyG_cyprus
0
142
Member Avatar for bradly.spicer

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' )";

Member Avatar for bradly.spicer
0
132
Member Avatar for jahidshumon

Start by asking yourself, "What will my app do?" Then, move and put your idea into actions.

Member Avatar for veedeoo
0
224
Member Avatar for Proglearner

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);

Member Avatar for Proglearner
0
182
Member Avatar for Rizi004

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 = …

Member Avatar for gon1387
0
3K
Member Avatar for efth

You can check [Google App Engine](https://developers.google.com/appengine/) if you want as CDN. And yes, you can use dropbox as CDN.

Member Avatar for gon1387
0
121
Member Avatar for siddharth.dixit.5243

@veedeoo: no more, no less. Well said. Welcome to daniweb siddhart

Member Avatar for gon1387
0
188
Member Avatar for subrata_ushasi

if the property "AnswerID" is your array, you can access is like this: $answer->AnswerId["LicenseInt"]["LicenseID"]

Member Avatar for subrata_ushasi
0
213
Member Avatar for furlanut

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']); }

Member Avatar for diafol
0
153
Member Avatar for GraficRegret

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.

Member Avatar for GraficRegret
0
273
Member Avatar for showman13

> 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 …

Member Avatar for showman13
0
375
Member Avatar for Eyeteeorg

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 …

Member Avatar for Eyeteeorg
0
219
Member Avatar for navneet patel

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 …

Member Avatar for jkon
0
292
Member Avatar for GraficRegret

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?

Member Avatar for GraficRegret
0
127
Member Avatar for rem2

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 …

Member Avatar for rem2
0
226
Member Avatar for Suzie999

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.

Member Avatar for Suzie999
0
281
Member Avatar for giovannitao

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 …

Member Avatar for gon1387
0
617
Member Avatar for dany12

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?

Member Avatar for dany12
0
240
Member Avatar for varma51

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

Member Avatar for gon1387
0
809
Member Avatar for karlcunanan

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`

Member Avatar for gon1387
0
1K
Member Avatar for Venter

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 …

Member Avatar for gon1387
0
2K
Member Avatar for divyakrishnan

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, …

Member Avatar for diafol
0
444
Member Avatar for rpv_sen
Member Avatar for dancks

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 …

Member Avatar for diafol
0
265
Member Avatar for Violet_82

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 …

Member Avatar for Violet_82
0
113
Member Avatar for kevinyu

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>

Member Avatar for gon1387
0
122
Member Avatar for Venter

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 …

Member Avatar for gon1387
0
226
Member Avatar for daniel36

Any luck? Can you show us you're view if you haven't found any problem with the log.

Member Avatar for gon1387
0
120
Member Avatar for DaveyMoyes

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] …

Member Avatar for gon1387
0
302
Member Avatar for mrnutty
Member Avatar for mousa.khaleel13
Member Avatar for cheelo007

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`

Member Avatar for gon1387
0
168
Member Avatar for gon1387

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 …

Member Avatar for gon1387
0
283

The End.