Jump to content

scott100

Members
  • Content Count

    1,819
  • Joined

  • Last visited

Community Reputation

1 Neutral

1 Follower

About scott100

  • Rank
    Dedicated Member
  • Birthday 09/25/1980

Contact Methods

  • MSN
    scott742@btinternet.com
  • Website URL
    http://
  • ICQ
    0

Profile Information

  • Location
    Glasgow, Scotland
  • Interests
    JavaScript (DHTML), PHP ASP. Music, DJ, Football, Movies

Recent Profile Visitors

12,021 profile views
  1. see example here: http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_checkbox_order because you have 2 inputs with the same name (contact) <input type="checkbox" name="contact" value="E-mail" />E-mail<br /><input type="checkbox" name="contact" value="Phone" />Phone Number<br /><br /> you will need to use a for loop to cycle through the inputs function validateForm(){var contact = document.forms[0].contact; // Name of input elementvar count = 0; // count is zerofor (i=0;i<contact.length;i++) //loop through the contact checkboxes { if (contact[
  2. You could use CSS to put a margin around the images http://www.w3schools...n.asp#gsc.tab=0 something like <head><style> img{ margin:20px;}</style></head> this would affect all images though... you could narrow it down further, this would only apply to images within the form tag <head><style>form img{ margin:20px;}</style></head>
  3. If you have no control over the page then you can't edit it. You could try injecting in a little piece of javascript but the change wont be permanent and only you would see ithttp://www.wikihow.c...ript-Injections if you browsed to the page, in IE/Chrome, type this into the address bar and hit return (don't copy and paste as the browser removes the javascript:word) javascript:;alert(currents); this may or may not be of any use.
  4. could try something like this <div style="width: 10%; float: left; text-align: right;">Satyaprasad</div><div style="width: 40%; float: left;border-bottom: 2px dotted #000000"> </div>
  5. ok, so you go to this pagewww.domain.com/password/users.aspx you view source and you see var currents="[Jo,0,1250.21][ian,0.10,2578.30][Fred,2.00,249.25][sue,0.30,1157.56][Chris,0.60,0.15][John,3.00,4742.60][Carl,0.50,0.00][Amanda,0.50,1356.89][Zoe,0.50,549.28][Jo,0.50,0.00][Jen,0.50,0.00][Jo,1.00,288.27][Tracey,1.00,1499.20][Colin,1.00,0.00][simon,1.00,0.00][William,1.00,0.00][Ty,5.00,4872.86][Red,2.00,249.27][ian,2.00,1023.41][Jeff,2.00,0.00][Kevin,2.00,0.00][Carol,2.00,0.00]";? Do you have any control over this page (users.aspx)? I notice you said earlier Do you only have read access to
  6. its quite literally trying to split the url:https://www.domain.com/password/users.aspxnot what is returned from the page users.aspx
  7. What does the url look like? you could try var currents=window.location.href.toString() instead of this var currents="[Jo,0,1250.21][ian,10,2555.11][Fred,2,186.36][sue,0.30,1157.56]";
  8. Hi, if you add a couple of paramaters to the process function - name and initialValue - you can then call it like so: process("Jo","0.50");orprocess("Jo","0"); The if statement can check if the paramters are found and the initial value not eqaual to 0 if ((temp[0] == name) && (initialValue != "0")) { alert("Found " + name + " and initial value is not 0 - total Amount is " + temp[2] ); } <!DOCTYPE html><html lang="en"><head><title>split string</title><style>.hdr {font-weight: bold;color: #0f0;}</style><script type="text/jav
  9. Extending the example on this page: http://www.w3schools.com/js/js_popup.asp You could use <html> <head> <script type="text/javascript"> function show_confirm(url) { var r=confirm("Are you sure you want to delete?\n\n" + url); if (r==true) { document.location = url; } else { alert("You pressed Cancel!"); } } </script> </head> <body><a href="javascript:void(0)" onclick="show_confirm('test.php?action=del&id=1')">Delete 1</a><a href="javascript:void(0)" onclick="show_confirm('test.php?action=del&id=2')">Delete 2</a>
  10. READ is a reserved word in MySQL - It's often best just to avoid them as you figured out, this should shed some light for you.http://dev.mysql.com/doc/refman/5.1/en/reserved-words.html
  11. scott100

    PHP and RSS

    That's some interesting stuff boen_robot, i will try it out tomorrow.thanks
  12. scott100

    PHP and RSS

    Maybe i should have said, the RSS is not stored on my server, it is coming from sites such as the BBC. I want to take that content and display it on my web pages.From what i remember the path to the xslt is saved in the xml file, but i don't have access to this file...Hope this is clear. :)EDITI done some searching and found exactly what i needed, a free script and the file sizes are smallhttp://www.extralabs.net/feed2html.htmHappy days
  13. scott100

    PHP and RSS

    I'm going to try the XSLT approach, i've not used it in a while so might be back for help thanks
  14. scott100

    PHP and RSS

    I am working on a project and would like to include an RSS feed. Using php, i want to grab the rss contents and convert them to html.Say i had a news feed like so: http://newsrss.bbc.co.uk/rss/newsonline_uk...cotland/rss.xmlDoes anyone have some code that would do this conversion?Any thoughts etc are also welcome.
×
×
  • Create New...