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...
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...
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...
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...
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...
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...
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 =...
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'...
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...
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...
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
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"...
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...
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...
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...
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"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.