Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. cbsarge

    SonicWALL Mobile Connect on Chromebooks

    Hello All, We recently picked up 15 Chromebooks from our good friends at Dell. My plan is to use our Google Apps domain to force install a number of apps on the Chromebooks through their managed policy. One of these apps is the SonicWALL Mobile Connect client. I would love to be able to include...
  2. cbsarge

    Selection list into localstorage but, values are not 0 through x???

    THANK YOU!!! I always over-complicate things.... [ponder] Your solution works perfectly! [2thumbsup]
  3. cbsarge

    Selection list into localstorage but, values are not 0 through x???

    I have a selection list that is populated by a bunch of items. Each item has a unique ID number that is stored in the value part of the option. I want users to be able to return to the page and using localstorage have the selections made on previous visits be what they see. For one list which is...
  4. cbsarge

    Checkbox to change width of body background image?

    Could the function in the js file look something like this and then just call the function with an onclick event tied to the checkbox? function FJactual () { if(chekboxObj.checked) { backgroundObj.style.background-size="cover !important"; } else backgroundObj.style.background-size="auto...
  5. cbsarge

    Checkbox to change width of body background image?

    The CSS I include with the extension to keep the image in view and shrink to the width of the browser is this: body { background-attachment:fixed !important; -webkit-background-size: cover !important; -moz-background-size: cover !important; -o-background-size: cover !important...
  6. cbsarge

    Checkbox to change width of body background image?

    I have simple Chrome extension that injects some html into a game webpage that lets a user customize the background image of the webpage. It stores the URL of the image with setlocalstorage so that when they return to the game the custom background image is still there. I've included some CSS...
  7. cbsarge

    use a variable's value from another page?

    so if the below output it what I'm dealing with how would I use this method to parse it out? It's a LOT to process...
  8. cbsarge

    use a variable's value from another page?

    I'm guessing now that I'll have to do something with arrays in order to preform math on these stats. I switched to using urldecode in order to more cleanly (get rid of all the %xx stuff) interpret the grabbed content. One line of the output is all of the action that takes place in the battle...
  9. cbsarge

    use a variable's value from another page?

    Got it (I think). The below works. I'm not sure if it's the most efficient way to do it but, it works! :) <?php $fjbattleid = $_POST['FJbattleID']; $contents = file_get_contents('http://shcgame.klicknation.com/apps/heroes//pages/battle_iframe.php?battle='.$_POST['FJbattleID']); $pattern =...
  10. cbsarge

    use a variable's value from another page?

    This doesn't work :( but, something like this? <?php var FJbattleID = $_POST['FJbattleID']; $contents = file_get_contents('http://shcgame.klicknation.com/apps/heroes//pages/battle_iframe.php?battle=FJbattleID&kn_context=openweb'); $pattern = '/var\s*fvars\s*=\s*(\{.*?\})/im'...
  11. cbsarge

    use a variable's value from another page?

    How would I pull the input from $_POST for use in the url?
  12. cbsarge

    use a variable's value from another page?

    If I want to put a form before the php page, how might I use the form ID as part of the URL on the php page? Below is a simple form page but, the inclusion of the form ID on the index.php page url breaks the output. battle.html <html> <head> <title>Battle!</title> <base...
  13. cbsarge

    use a variable's value from another page?

    Ah - my bad! The replay URL actually has an iframe in it with the replay page and fvars variable. Once I changed the url in my php file to get the contents of that it output the below (still not recognizing some of the html characters I guess). This is excellent! I can start working on a form...
  14. cbsarge

    use a variable's value from another page?

    Thank you :) for your help but, I tried putting your code in a php file on my web server and it generates a blank page - http://www.cbsarge.com/index.php
  15. cbsarge

    use a variable's value from another page?

    Here is the source of the frame that contains the battle animation a swell as fvars. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type"...
  16. cbsarge

    use a variable's value from another page?

    The page in question is like an "instant replay" page. They are free to share with other players so they can watch your battle. Even though the replay page only shows the animated battle scene it still contains the fvars variable that holds the sequence of attacks and how much damage they did...
  17. cbsarge

    use a variable's value from another page?

    I'm not sure if PHP is the right way to do this so if it's not please tell me :) I'd like to create a webpage where someone can go an plug in a link to a replay page from a game I play. Normally this page just shows the battle scene. The page also contains a variable named fvars that contains...
  18. cbsarge

    selection list value in cookie to maintain selection when user returns

    I have a javascript function that uses a bunch of selection lists, some containg numbers and some containing text, and was wondering how I could save the selected values so when the user returns to the site the previously selected items are already selected. So if I had a selection list like...
  19. cbsarge

    strip commas from form based calculator?

    That did it! Thanks so much for your help!!!
  20. cbsarge

    strip commas from form based calculator?

    It's being used in the context of a page that has some dollar values with commas in them so the simple math is o.k. Unfortunately making this change renders this error: Uncaught SyntaxError: Unexpected token ILLEGAL I'm using Chrome for the browser. <td align="center"><input type="button"...

Part and Inventory Search

Back
Top