Window Without Titlebar (for Html-based App On Public Machine)?
Feb 27, 2009
I'm about to start a project where the application is one used on a publicly accessed machine. It could be like, say, a ticket purchasing application in a kiosk machine; or maybe touch-screen app that tells grocery shoppers which aisle has coffee, etc.
So my question is, can javascript (or some other language?) be used to open a window without any controls (toolbars, menubars, titlebars, frame, etc) so that the user can't close the application (or resize, change, etc.)?
We need to open a popup window only with borders. We removed all the contents like menubar, toolbar.. etc. but we are unable to remove titlebar from the window.
Notice: This is a discussion thread for comments about the SitePoint article, A New Window on HTML-Based Adobe AIR Apps.Contest ended early? After submitting the quiz, it says it's over already - not supposed to expire until the 5th, right?
I need to be able to search through an xml located on my local machine with an html page. Here's the thing: this whole system (html files, xml file) will always be on my local machine. Because it's a class project it won't be on a server. So here's the scenario: I navigate to where my files are located (say C:) and I double click my index.html page and this page opens in my browser and from this page I need to be able to search my xml file which is at the same location. I've tried xmlhttprequest and it won't open the xml file I'm guessing because I don't need an http request.
Here's what I have so far: if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.open("GET","C:MovieDB.xml",false); xmlhttp.send(); xmlDoc=xmlhttp.responseXML;
function searchDB() { if(!xmlDoc){ alert("error") } var keyword = $('#txtBox').val(); var searchVal = $('#basicCategory :selected').text(); var allitems = xmlDoc.getElementsByTagName("Movie"); for(var i=0;i<allitems.length;i++){ alert(allitems[i].getElementsByTagName(searchVal[0]. childNodes[0].nodeValue); } } The code doesn't make it past the xmlhttp.send() line.
We have a form on our website, which ends up being sent to an e-mail address. The only problem is that some people access this form using public computers. When they press submit , the Internet Mail Wizard pops up and tries to make them setup a new account. Obviously because they are using a public computer we can't have them setting up e-mail accounts on that computer.
(function($) { $.fn.MyFunction = function(o) { // Here we have some parameters return this.each(function() {
[Code].....
So what I'm looking for is how to reference MyExternalFunction from my html script. I've tried simply using MyExternalFunction(index) but I get function undefined.
This question applies to javascript generally as opposed to jQuery specifically. I want to be able to structure my scripts into classes, then create them using the "new" keyword, but here is the important bit: How do I make a js function private (or public for that matter)?
I want to call a script from one domain in another domain. How can I *guarantee* that the page calling the script is from my domain and not some hacker/malicious user?The context is that I'm writing my own commenting system, like disqus or intensedebate. They use javascript to imbed your comments (stored on their site) in your site.
Here's how intensedebate's "generic" approach works: You imbed this code into your page:
Code:
<script> var idcomments_acct = 'YOUR ACCOUNT ID'; var idcomments_post_id;
[code].....
The problem is that anyone has access to your accound ID by just looking at the HTML source, so anyone can bomb your account...
so I figured I can track one page of the private website (intranet) through Google Analytics. The way I do this is by creating a page on a public website with just GA code, then putting a 1px x 1px iframe on the private website.
I'm not sure why, but the Console.focus() and Console.writeln() methods just don't seem to be able to use the DOM references stored in Console.STDIN and Console.STDOUT. Everything's fine in the constructor, but other methods can't seem to use them.
I've just developed a plugin that mimics the combo box control, albeit it's a special one. That's being defined as follows:
function $ { $.fn.extend {
[Code].....
But this isn't possible, since the $myList variable is a jQuery object. So I just defined some functions, say, $.smartList.getSelectedValue and the like... but in this approach, I've to pass the jQuery object to this functions as a mandatory parameter and this really sucks. i.e., I need to get the selected value of $myList this way:
var value = $.smartList.getSelectedValue $myList ;
My HTML page loads and alerts an XML document on another machine. If I request the page by machine name or localhost there is no problem. If i request by IP access denied error occurs.
I think this is because of that only the documents on same machine can be loaded. Is there any way to load xml documents from another machine?
I am writing some numerical math programs in Javascript (translating from C++) and am seeking your advice regarding machine constants.
C++ offers the <cfloatlibrary for accessing machine constants such as DBL_MIN and DBL_EPSILON. Does Javascript offer comparable values? If not, can you suggest a method (brute force or otherwise) for calculating these values myself (in Javascript)?
I'm trying to make a slot machine effect in JS - i had an ajax example but was far too complicated to manipulate to communicate with my server so im working from ground up.
The way ive done it is simple html and a submit button.
But i want the submit button to first create a "rolling through the images" affect like a slot machine does - then stop left to right in that order (basically like a slot machine does).
Now this is beyond what i know in JS but i then also want it to know the result of the images store them into an array and push it to my PHP so i can process it on my server.
I have a js file embedded into additional files to make up the extension.
I want to run a single executable file, but I can't figure out what the relative path is. The path must remain relative, because the user will set the directory.
The js code like so:
runthefile: function(){
const path = "calc.exe"
var file = Components .classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile)
file.initWithPath(path) file.launch() }
However, it doesn't seem to run calc.exe no matter where I put it. Code:
i followed my first AJAX tutorial on the web: [URL]
the AJAX is working fine on the site itself, but when i download the source codes provided with the tutorial, it won't run from my machine. i checked this with several tutorials and all same. i.e. no results when run from the desktop machine.
I need to find the information about Client machine by using Javascript : Information like : How much Avaliable sapce on clinet's machine ? Need to find RAM size . Operation System. Can we have any built in Active X control to get all these values ?
I have some script that looks at the appName, and based on that I want to open a seperate page. Not sure how to. I can get an alert to show up, but need my other page based on the name.
<script type="text/javascript"> var name=navigator.appName; if (name == "Netscape") {
i want to open filedialog on client machine in javascript (in jsp page) ,Following is the code i have written but it is not working
var Frame = new java.awt.Frame(); var fd = new java.awt.FileDialog(Frame, "Browse File",java.awt.FileDialog.SAVE); fd.toFront(); fd.show(); var getDirectory = new java.awt.FileDialog(Frame); [Code]...