Jump to content

bleustreak12

Members
  • Posts

    73
  • Joined

  • Last visited

    Never

Everything posted by bleustreak12

  1. I am getting this error when I use this header("Location: /"); to redirect to home page.I believe there is a javascript alert which come before this is called, that gives the below error, I cannot remove the alert so is there nay other way I can go about redirecting without giving me the below error ? A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at /home/dsdsd/application/core/MY_Controller.php:dsdsds)
  2. similar to how we have onfocus and onclick on input tags I am using the below method( if the method is wrong please let me know what would be the proper method ) for validating and submitting a form through javascript when someone presses enter on a textbox in a field in a form Example when someone writes the password in the password field and presses enter (when the cursor is on the password field) the form should validate and submit. I even have a submit button but I want the same thing to happen when enter has been pressed on the textboxes I am using this right now onkeypress=‘if (event.keyCode == 13) { validate(); }’ for my textbox fields the issue over here is that when the history of my text box shows below my text box and I select it by pressing enter it does not take the value first in my text box. It straight away validates the value in the text box Example: I have typed abc in my email textbox, I get abc@xyz.com below my text box showing that I had typed that earlier, now when I do down by pressing the down arrow and pressing enter it does not take abc@xyz.com in my text box but straight away runs validate() and gives me an error as wrong email format. I believe it should first take my old value in the text box and then run the validate function The issue is that it should validate and submit form when enter is pressed in input(textbox) field, but currently it does not select history and run the javascript validation function I am using codeigniter 2.1.0 but I thing this comes in javascript domain
  3. I am using this number_format($variable,2,'.',','); Is this right?
  4. Thanks There are certain places where I need it to be double So I believe it should be echo (float)$Price; Right?
  5. 0 down vote favorite share [g+] share [fb] share [tw] In my html I have <input type="hidden" name="Code_value" value="xyz"> <input type="hidden" name="Code_value" value="abc"> <input type="hidden" name="Code_value" value="rst"> when i submit I take it in my ASp.net code I take them as string Items = Request.Form["Code_value"]; the value of Items is xyzabcrst in PHP $Items=$_POST['Code_value']; The value of items is rst It takes the last value in php is it because there are multiple Code_value items if so why is it not taking just the last value in Asp.net
  6. empty function takes 0 also as empty, what if my $_SESSION["cart"]=0
  7. will this code check if value is null if($_SESSION["cart"] != null)
  8. I have the following code in asp.net Convert.ToDouble(Price) and I am confused should I use $value= number_format($Price, 2, '.', ''); or echo round($Price, 2); CAn anybody help me as to what it will be am I not using some PHP function
  9. Obj_12.Amount.ToString("N2"); will convert 987.1 to 987.10 I need the proper decimals
  10. I have written this in my asp.net application and have to now convert it to php string money_amount = ""; money_amount = Obj_12.Amount.ToString("N2");
  11. Any ideas for php and javascript/Ajax - script for image editing?
  12. I would want one which could be easily integrated into a php website preferably Joomla.I understand that mostly server side code is required but I had seen one with Javascript and Php which was quite good but I cannot remember right now
  13. I have tried searching on google but have not found a php image editor which allows me to draw, put effects on and image using the GD library, any good links or scripts.? I want the user to be able to draw with his mouse on an image
  14. Thanks nice link but I cannot find a similar maximize and minimize button in the dialog the client is very adamant about having exact popup to http://prototype-window.xilinus.com/samples.html first one. I would really like it if jquery was able to achieve this
  15. I have tried google but I cannot find the minimize and maximize buttons like in http://prototype-window.xilinus.com/samples.html the first 1. Open a simple window (click here) one in jquery can somebody provide me a good link
  16. Can anybody provide a link to such a script in jquery or mootools
  17. Hi, I have some effects right now which come up only when someone clicks on a Hyperlink or a button. I want the same thing to happen when the page loads automatically without somebody clicking on the link. How can I run a button or a hyperlink on body onload function(i.e when page loads). Is there any other way to run a link or button when page loads can you provide me examples
  18. Hi I would like to know if there are similar scripts in Jquery and mootools to get the similar dialog effect as in http://prototype-window.xilinus.com/samples.html My client especially likes the first one. Any help would be great.
  19. Yes I have tried the jqueryui It is ok but it is giving some conflict with my other jquery files that i have . It would be nice if I could get some other methods to achieve my popup
  20. I want something similar to what happens when you click on the top right login on this page http://khojguru.com/ I now have 2 forms and I don't want them to conflict in any way.
  21. That page tells that you have to change your settings manually.but the issue is I cannot tell all my users to make the changes .
  22. Thanks but the client likes an exact same effect to the above site. Any tutorial for this kind of effect?
  23. this website http://demo.yootheme.com/oct08/
×
×
  • 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.