how to acquire data from Flash chart on website pages - html

We have service from others, however they only offer chart on a old FLASH website pages. it will update daily data in the FLASH chart. i need to read the data and input into a sheet. and it is a daily job. besides, latest Chrome doesn't support FLASH anymore. i think there is a sollution to have the data only. i reviewed the website pages.
swfobject.embedSWF data-file chart
</table>
<div style="float: right; width: 75%; margin-right: 5px;">
<div id="container">
<div id="ofc"></div>
<script type="text/javascript">
swfobject.embedSWF("/WebResource.axd?d=RANDOMCHARACTERSTRING&t=636791717427507377", "ofc", "750px", "400px","9.0.0", "expressInstall.swf",{"data-file":"%2fchart%2fdatafile%2fdata.aspx%3fbegindate%3d2023-01-01%26enddate%3d2023-12-31%26cityname%3d%25e6%259d%25ad%25e5%25b7%259e%252c%26typename%3d%25e7%2583%25ad%25e8%25bd%25a7%25e6%259d%25bf%25e5%258d%25b7%26quaParam%3d3.0%26n%3d2058395191","loading":"LOADING AND WAIT"});</script>
Is there any idea to have the data? and i can do it in MS EXCEL.
enter image description here.

Related

Suggestion of how to design GUI to render HTML formatted data

I am preparing for GMAT and hence preparing a question bank. gmatclub.com has lots of question and I was able to write a python script that got the questions and respective answers. While getting the data,I am retaining the HTML formatting as some questions will have underline and bold portion.
I want to develop a desktop application that should read the HTML data (i will use excel or access db as datasource). However I am not sure how to design GUI that will render the HTML formatted data. Any suggestions, on if I can use excel or access user form to show HTML formatted data. Otherwise, if I have to use browser, can I implement the logic without server side scripting that is can I use Javascript to access database(IE allows use of ActiveXobject, however it wont work on chrome and firefox thats what MS site says). The reason for not using server side scripting is, so that I can share the source code with my non-tech friends and they can use it without installing anything.
I would recommend making a very simple web page, all stored in a single file (no server side). If you can get all the HTML for the questions and answers using your python code, use that same code to also write the Q&A into an HTML file that looks like what I have below (I note with comments where you should be writing the Q&A).
I would recommend hard-coding the rest of the html file (i.e. the parts outside the Q&A section) into your python code so that it can print this entire file in one fell swoop. You can then just open this in your browser of choice:
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var json = [
//Use Python to write in your Q&A's here
{
"question":"Do you want to take the GMAT",
"answer":"<b>Yes</b>, I do"
},
{
"question":"What is LLC?",
"answer":"Limited Liability <i>Company</i>"
},
//End Q&A section
];
function reset()
{
$('#next').hide();
$('#showAns').show();
$('#a').hide();
ask();
}
function showAnswer()
{
$('#next').show();
$('#showAns').hide();
$('#a').show();
}
reset();
$('#next').click(function(){reset();});
$('#showAns').click(function(){showAnswer()});
function ask()
{
var randNum = Math.floor(Math.random() * json.length);
$('#q').html(json[randNum].question);
$('#a').html(json[randNum].answer);
}
});
</script>
</head>
<body>
<div id="q"></div>
<div id="a"></div>
<button id="showAns">Show Answer!</button>
<br>
<button id="next">Next Question</button>
</body>
</html>
Notes
1) They'll need internet connection to use this, since I make a call to google's jQuery (so it's technically not one page), but you can just download jQuery and call it locally.
2) It sounds like you'll just be getting the list of questions once, so it might actually be quicker to format them in excel into the JSON format and then paste them in the code.

iOS 9 - Web Form Not Submitting When Photo Selected from Existing Library

I am creating a form in a web app that needs to upload an image file.
This should work whether you take a "new photo" or choose a file from your "existing library".
I am testing the form on iOS 9.1 and I can get it half-working.
If I take a NEW photo, then it works perfectly and advances to the success screen.
If I choose a photo from my existing library, then it does not work. It sort of appears like it's working, but then it just reloads the same page. The data never submits to the backend.
I'm using code I used with iOS 8 and if I recall, it worked properly.
This is what I have:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<form id="defaultForm" method="post" class="form-horizontal" action="/receipt-submit" enctype='multipart/form-data'>
<div class="form-group receiptContainer">
<div class='upload-photo' onclick="$('#receipt').click()">
<image src='/img/camera-icon.png' class='img-responsive' alt='' />Upload Your Receipt</div>
<div id="Ugly">
<input type="file" name="receipt" id="receipt" accept='image/*' />
</div>
</div>
<button type='submit' name="validateBtn" class="upload-photo submit" id="validateBtn">Submit</button>
</form>
I had to get fancy with the styling, which is why you see that div with an id = "ugly".
I would love to get this working with button new and existing images, but nothing I try seems to work.
Any help or ideas is appreciated.
Thanks in advance!
I had a similar issue which has plagued my users since IOS 9 came out. I FINALLY fixed it. Basically, the issue is that Safari Mobile drops the .jpg from the uploaded filename for .jpg media files. Screenshots and current Camera are .pngs, and they get uploaded with an extension, so they work. It's just images you take with the camera and save to the media roll ahead of time that don't have an extension at upload time. Since most server side back end systems check extensions to determine whether the file is an image and should be post-processed, it's most likely that on the server side you are receiving the file, but you are instantly discarding it because it has no extension. Since I couldn't test with a true IOS device against my local dev environment, and ergo, step through the server side code after being submitted by an actual IOS Device (not an emulator), I assumed the same thing, that the input was never getting posted.

Using Swiffy html5 banners in Adwords

I've successfully used swiffy to convert a flash banner to html5 - to be used on Adwords
However I keep running into hurdles for uploading them -
the first issue was the swiffy file didnt include the meta ad size property - easy enough to fix
second issue is - swiffy files point to an external runtime.js, and Adwords requires all files to be local. runtime.js is HUGE and will easily put me over the 150kb size limit when zipped.
third issue (once i'm able to find a way around the runtime.js issue) would be having the ad server clickTag function like a swf banner - and not be set static in the file
has ANYone- successfully served an html5 banner on Adwords made via swiffy?
We did, but the size was the biggest problem. Did you manage to get the runtime.js down to anything usable. We were lucky with some banners which were small to begin with. The clicktag works seamlessly once you upload the .zip, GDN takes care of that.
Ive built over 100 banners in Swiffy and all have trafficked just fine in DCS, DCM, Sizmek and 3rd party. I have not done any Adwords banners yet, but my DCM rep told me that adwords can auto convert SWF ads into Swiffy. I am not sure how that works and I have not done that yet. Also, I have been told by reps in Sizmek, DCM and DCS that runtime.js is NOT counted in the file size when you put it in externally since most browsers will be caching that file. So the user would be caching that file after they viewed 1 banner and after that it would only be downloading the Swiffy ad.
For the clicktags, we have been using this successfully:
CODE FOR THE FLA FILE...... Make sure you remove the old clicktags and replace it with this for each clicktag. Modify the movieclip name as needed.....
import flash.external.*;
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
// ----- CLICK THROUGH ----- \\
mybackgroundclick.onRelease = function():Void{
ExternalInterface.call("bannerBgClicked")
};
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
CODE FOR THE HTML FILE...... This goes inside the <HEAD> section, but put it at the very end, just before </HEAD>......
<script type="text/javascript"> var clickTag = "http://www.google.com"; </script>
<script>
function bannerBgClicked(){
window.open(window.clickTag);
}
</script>
For Clicktag this seems fit in most cases with Swiffy content.
Add to head:
<script type="text/javascript">
var clickTag = "%c";
</script>
Add this to body just after the div id="swiffycontainer" element at bottom of document code (before closing /body tag):
<a onclick="window.open(window.clickTag, '_blank')" style="cursor:pointer; text-decoration:none;">
<div style="width:160px; height:600px; left:0px; top:0px; position:absolute;"></div>
</a>
Change the 'height' and 'width' properties to the proper size of document.

Pentaho reportviewer URL not loading in iframe

Am new to pentaho.
I try to display the report using pentaho reportviewer in iframe i use .prpt file to load the report.
I used the following url in iframe
http://172.20.10.30:8080/pentaho/content/reporting/reportviewer/report.html?solution=steel-wheels&path=%2Freports&name=Inventory.prpt&userid=joe&password=password
If i invoke the above URL in the browser it display the report. I don't know the problem in the above code.
Hear is my Iframe code
<html>
<head>
<title>Sensatron Issue Testing</title>
</head>
<body>
<p><strong></strong><b> Sensatron Issue Testing.</b></p>
<iframe width="1300px" height="750px" src="http://172.20.10.30:8080/pentaho/content/reporting/reportviewer/report.html?solution=steel-wheels&path=%2Freports&name=Inventory.prpt&userid=joe&password=password" name="Bharat" >
</iframe><br>
<br>
</body>
</html>
Result:
iframe empty
Pentaho Server and its version.
I use pentaho BIserver4.5 to generate report using .prpt file
Thanks in advance.
This old question hasn't been answered yet and I also tried to find a solution.
One of solution is show html version of report as suggested in
http://pentahoreportingandintegration.blogspot.com/2013/04/pentaho-report-integration-in-iframe.html
But I believe the better solution is mine. I explained in my blog:
http://fabiantowang.blogspot.com/2013/07/embed-pentaho-report-viewer-to-web.html

big Fat HTML5 app..which contains every thing (CSS, images, JS libraries) in one file alone. Possible?

Is there a way to package an HTML5 app into one file which the browser can open and every thing that needs to be there is there.
I guess it is some what of an anti-thesis of a webapp which you can update as you go along. But this could be useful. You can think of it as an exe or jar file but all done in one big fat HTML5 app.
For the sake of simplicity I am ok with the app working on one browser only (and it can be the nightly-build version)
Yes, it is possible. Just deliver a single HTML file with
<STYLE type="text/css">
H1 {border-width: 1; border: solid; text-align: center}
</STYLE>
Within the head section. Do the same for JS:
<SCRIPT type="text/javascript">
//...some JavaScript...
</SCRIPT>
And you are done. Images can be included within JS, HTML or CSS by using data uris:
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA
AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot">
Beware that they are somewhat limited - for instance, it seems that IE8 does not like more than 32Kb's worth of data in a single one.