Jump to content

phpjayx

Members
  • Posts

    58
  • Joined

  • Last visited

Everything posted by phpjayx

  1. I'm testing out a simple form. I'm wanting to have this code be available to other websites to use to allow them to send a couple of variables over to my site..... my test code isn't even working. I'm sure its something simple I'm doing incorrectly. Any help would be appreciated. Thanks in advance. ------------------------------------------------------ <form action="" method="post"> <div id="entry_fields"> <input class="textfield" id="email" placeholder="Email" autocorrect="off" type="text" autocapitalize="off"> <input class="textfield" id="name" type="password" placeholder="Name" autocorrect="off" autocapitalize="on"> </div> <div> <input type="button" value="Link to site" onClick="window.location.href='http://www.tester.com/MainPage.php?email=<?php echo $email?>'"> </div> </form>
  2. Here is the other version I tried.... this didn't either work to shrink it .myButtonA1 { background:url(/B1.png) no-repeat; border: none; display: inline-block; width: 50px; height: 50px; }
  3. yea... tried that.. still no luck. The resizing just doesn't seem to work. Even if I try to assign a specific pixel size to the image in CSS. The button just shows up as being empty. Any other suggestions on code to try out? This seems like it should be so simple but I can't fix this darn thing.
  4. I do have photoshop and Illustrator. I've used both, but the last one I saved B1.png with was Illustrator. I did not know about the @media query option. I will have to learn a bit about that. The attached pic is what I was trying to use.
  5. So I'm attempting it another way... with a PNG like mentioned... starting off with a larger high quality image. Looking at some web references it looks like this should load in the image... but nothing happens My debugger shows the image B1.png is loading... but I don't see it. Is the sizing messing something up. .myButtonA { background:url(/B1.png) no-repeat; margin:0; padding:0; width: 14%; height: 14%; border: none; }
  6. Maybe I just don't have the right tools.... I'm using Adobe Illustrator. Whenever I try to save my vector images as a PNG.... the quality goes way down and is somewhat distorted. If PNGs are working well for you, showing up with a high quality on IPADs or Iphones, what settings or method are you using to save them at a high quality?
  7. Still no luck fixing this issue. Are there any other image types that I should try which use vector images that may not have this issue?
  8. Well I just found one solution.... to just put a (number2 *1). This solved it..... I saw on another site someone posted to use....CAST(column AS DECIMAL). But I felt like the other was simpler... If there are any drawbacks to using the *1 method, please let me know. Thanks!
  9. {$sql_select = "select * from data where valid='1' and userid='" . $param['userid'] . "' order by number2, timestamp asc";} The above code sorts on the "number2", except when the numbers are 10 or above it is only sorting by the first number.... So if I had a list of the following the order is 1 1 1 10 11 11 12 2 20 21 3 4 5 etc Any help would be appreciated!!! Thanks in advance
  10. I've built a dynamic list using .JS and HTML similar to the code of the following line.... cellHtml += ' <input class="myButton1 w_50p h_70 margin_top_20px" onclick="' + onClickType2 + '" type="button">'; -------------------------- The problem is after getting about 7 or more rows built.... only on the IPAD I get images like the attached where about 2 out of the 7 lines the button images overlap with its own image.... It looks fine on my other safari browsers and the IPhone. For the safari browsers these are .PDF images to get the highest quality. Has anyone seen issues like this? Any other vector images that people recommend to use? Thanks in advance
  11. Ok... figured it out..... the simple line of the following worked..... margin-top:95px I assumed it wouldn't because I wanted it to work on different devices so I thought that it would differ from an IPAD to a PC to a IPhone, etc.... but it works fine
  12. This site has exactly what I'm looking for.... http://lifeinthegrid.com/simple-css-fixed-header/#codesyntax_4 But, I'm having trouble picking apart the code that would offset the Body of the text to make sure it starts at the correct vertical location..... Any help?
  13. So everything below the SUBMIT button is the list... but the first item on the list is behind the top section..... I was able to FIX the top section so it doesn't move with the above code, but I can't get the list to start below the Fixed section..... I need it assign it relative to the top section so it works on any device.... IPAD, PC, Android... etc...
  14. I have fixed some entry boxes on the list with the following.... #fixed_top { z-index:1; position:fixed; top:0%; height: auto; background-color:#ffffff; width: 99%; } I have a list below it, but the first item is alway behind the fixed area. How can I alway start it so the list starts below the "fixed_top"?
  15. I haven't updated my code on this page in a little while and now I'm getting this error at the top of my page.... Any tips on whats going on? I may just try a restart of my server -------------------------- Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at.........................
  16. Ignore... I figured it out..... Almost the same code.... I didn't realize it was stopping on the error within the function parseDataJson(returnValue2); So I just had to move that line down in the else statement...........
  17. The below function is when I have my users log on. I've been working on this for hours, still unable to figure it out.... When I login with a valid user ID, it correctly logs in... My problem is getting the Alerts to work. When my data did not have mulitple return values it worked... but now that I added the additional parameter from the PHP file, the alerts do no work anymore.... I've attempted to use a $.parseJSON statement on the returnValue, but that doesn't work.....I don't know how to get at the "false" or "-1" output Any suggestions???? Please -------------------------------------------------the return statement from my PHP file return $json.'^'.$json1; -------------------my debugger output when entering an invalid password ^false --------------------------------------------------------- My .js file function onSuccessLogin(data) { var temp = data.split("^"); var returnValue = temp[1]; var returnValue2 = temp[2]; parseDataJson(returnValue2); if (returnValue == 'false') alert('Login fail'); else { if (returnValue == '-1') { alert('You need to click on your email confirmation first'); } else {..........................
  18. Well no answers.... but since I was only able to get .PDF images to work in Safari, I ended up just doing a browswer check... And load up the quality .PDF images when using Safari. If I discover more image types that work with other browsers I'll add those as I find them. I can't beleive more browsers don't support some standard Vector image like .PDF
  19. That wasn't quite it, I was attempting to do it in my .JS.... But thank you, you lead me down a different path of thinking and I finally got it.. Below is what I came up with in my JS and it works. function parseDataJson(returnValue) { var Datax = $.parseJSON(returnValue); alert(Datax[0]); }
  20. I have now attempted to use .toString() and I run across teh same problem. The furthest I get down to is if I do a SPLIT again on sp2=sp1[2].split(":"); and then I can grab sp2[2], but the string it writes over to my innerHTML variable includes the quotes, which becomes problematic further down the line.... So I get literally with the quotes "mozilla" Still no luck. Help would be greatly appreciated.
  21. I'm very new to Java, and a lot of coding in general... I found some code to get browser information of the user and have successfully transfered from my PHP controller file to my .JS file and come to this string (returnString2) {"0":"mozilla","1":"5","name":"mozilla","version":"5"} I know that the returnString2[x] gives me the a piece of the array, but extracting it from there is my problem I want to get at the variable "name", but I'm having trouble getting it. I'm sure its very simple, but if someone could explain I would be greatful!!!! Thanks in advance
  22. I've read some things that SVG files are fairly compatible with browsers. I attempted to implement them in the CSS code like below, of course swapping the .pdf to .svg, but at least in Firefox or my IPAD, nothing showed up. Would I need to implement it in another way? Some extra plugin needed? How about other vector image options, what is the most compatible type? The .PDF option seems to work great on my Apple products, but no where else.... Or any combination of plugins or other tools that would help one of these other file types be successfull? .myButton1 { background:url(/Button1.pdf) no-repeat; cursor:pointer; width: 50px; height: 50px; border: none; }
  23. I have the simple text below for my button, which in its original form is 125x125 pixels. It doesn't scale it on my page, all it does is clip the image at 50x50 pixels.... what am I doing wrong here? .myButton1 { background:url(/Button1.png) no-repeat; cursor:pointer; width: 50px; height: 50px; border: none; } ---------------------------in my js file cellHtml += ' <input class="myButton1 margin_top_20px" onclick="' + onclickType2 + '" type="button">';
  24. If I already have a Submit button which send over a username and password. How do I allow the user to press the ENTER key as an alternative to pressing the Submit button?
  25. Thanks for the help. I hired someone to create the page for me, so it looks like there were some things not cleaned up. The last statement you made, about closing the connection only when PHP destroys all the resources used on any page.... Is this done automatically or do I need to put some command in to detect when the resources are destroyed, and then do the close? Thanks
×
×
  • 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.