Jailed Javascript Engine ?
Jul 23, 2005Is there any implementation of the javascript engine that can be run
in a jailed environement?
Is there any implementation of the javascript engine that can be run
in a jailed environement?
Does anybody know of a utility that will return the output of javascript code? Preferably it needs to be usable from the command line in Linux. I want the utility to output something like this:
<ul>
<li>1
<li>2
<li>3
</ul>
From this:
<script>
document.write('<ul>');
for (i=1;i<=3;i++) {
document.write('<li>' + $i);
}
document.write('</ul>');
</script>
I am new to Javascript and I downloaded JSE internal search engine v 1.0a from CodingForums. It works fine in all browsers other than ie6 and ie7. Have confirmed that other javascripts are working in these browsers so it is not my browser settings.
View 1 Replies View RelatedWhile attempting to create a greasemonkey script in FF2 (don't ask), I discovered that the "let" statement was causing my code to fail. After confirming that this statement has been available since FF2 (js engine 1.7) [URL] became curious as one determines their javascript engine in FF. IE has a way to inspect the jscript engine, ala [URL] but I couldn't find anything similar for FF. Feel free to list links for testing engines in other browsers,
View 1 Replies View RelatedI have never done this before and I need some help. Can someone tell me how can I create a search engine within my website to search through the text on a certain page? This is the site I am talking about:http://www.21stcenturyworld.com/community.html
View 9 Replies View RelatedI have 2 boxfield in my search engine...when i write somthing on my 1st text box and press the clear button it clear me the thing i wrote in the text field....when i write somthing and drag it from 1st text box to the 2nd and then press the clear button.the letter in the 2nd textfield jump the 1st one.....and doesnt clear herself...
View 1 Replies View RelatedHow would you create a text field that allows users to select different search engines, and then search their keyword. Essentially what I'm looking for is a something similar to the default multiple search field that you see in Firefox and Safari.At this point in time I have the multiple search feature implemented. But all I really have is a <select> next to a <input>. What I want is something that combines the two. Basically I want the look and feel of Firefox/Safari default multiple search field.
View 1 Replies View RelatedI'm wondering if the <input type="search" /> has the capability of adding search engines to the end of the drop down list. In Safari if you click on the magnifying glass on the search box, you'll see search engines at the very bottom. I'm wondering if I can do that to my webpage using <input type="search" />, but having my own search engines specified.
View 1 Replies View RelatedI am just curious. It seems at this point of time Sizzle rules. Still I would like to know what other frameworks are using.
View 1 Replies View Relatedi am using expression engine and i am implementing gmap for implementing google map and i want to pass data of longitude and latitude from expression engine and this is the code where i am facing problem
[Code]...
so whenever i am trying to use this {exp:channel:entries} code block the jquery plugin in not working , so is there any way to pass the data in to jquery using expression engine ?
I've been the last few days around a script that I can't make it work. This script is a search engine, when you look for something say the word "titanic", it shows you a list of results with numbers, being the first link with the higher number (kinda like a score), and then after u click the link you want he goes to the respective page. Now I want him to skip the results page, and directly open the first link that he founds on the page.
The Script
<!-- Begin
var item = new Array();
// Just enter as many additional pages that you want to search, then fill in he additional listings for each page.
// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"
c=0; item[c]=new Array("centerif.htm","","titanic","index,main,start,home,front","Demonstration search engine data about an imagined but probable internet site."); .....
Can anyone get me a simple script for a search engine for my website? i cant find a decent 1 anywhere.
View 6 Replies View RelatedWebsite for a external search engine for your website, or give me a HTML code or CSS code?
View 1 Replies View RelatedI was wondering what could be wrong? There is this ajax code that I'm trying to work on and its supposed to show the results in a div tag when submitting a search form, but theres no results.
Here's my code
My form code
Here's my results page
With my search query php code
i have a free js script for a search engine, pretty simple, i define the key words and the .html associated to them. But when i enter a word he starts listing the matches he found and rate them by number, being the highest number the most probable match!
Now what i want to is to SKIP the listing, and redirect automatically for the .html of the first match he finds .
The script:
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Dion (biab@iinet.net.au) -->
<!-- Web Site: http://www.iinet.net.au/~biab -->
[Code].....
Does anybody have regex engine source code? Any link on javascript engine. Really interesting to look at.
View 1 Replies View Relatedcan any recommend a good free javascript search engine?It must work locally i.e. not require a server to work
View 6 Replies View RelatedIdeas on Java script Tile base game engine. You know.. with click to walk (or keyboard), inventory, grab items, talk to people, exp, levels, etc.
View 1 Replies View RelatedI like the looks of the validation engine plugin, but I can't figure out one thing... For a particular form field, I need to use an Ajax service to validate the data. I have to pass the value of the text input, of course, but I also need to pass a couple of other key=value pairs along with it. In the file with the selectors there's the option to add extraData (like extraData="name=eric") but I need to set these parameters based on some dynamic info.Is there a way to pass extra information to the ajax service?
View 1 Replies View RelatedI have two js scripts running on my project at the moment, one is uses mootools and the other uses jquery-1.2.3min, both work but not if they are on the same page.The mootool adds the pop out effect to a form box and the jquery enables the nav switch for 2 boxes that contain different form fields for a search engine. Now I've been reading up on the two and have decided to favour jquery which means I have to reproduce the same effect in mootool but with my limited knowledge it's proven rather hard.The mootool code:
var isExtended = 0;
var height = 165;
var width = 240;
[code]....
I just wanted to know if I have a text document that contains html code,how would I search through the code and retrieve all the data related to the search. i.e. by creating a search engine. The problem I face is if the format of the tag names change in the html txt document then it won't work. Therfore using DOM to retrieve the text would fail. Is there anything other than DOM that I can use to parse through the text document, so even if the code changed the search engine would still work.The aim is to search through a html "text document" and retrieve the data that the user wants.
View 1 Replies View RelatedI'm working on some code and am running into brick walls. I'm trying
to write out Javascript with Javascript and I've read the clj Meta FAQ
and didn't see the answer, read many similar posts (with no luck
though), and searched through the IRT.ORG Faqs
(www.irt.org/script/script.htm).
The Javascript is designed to open an popup window and then inside that
window call another script which will resize that window. There may be
another way around this but the reason I tried this approach initially
was that I wanted to call the onload handler in the popup window to
resize the image only after the image had completely loaded. I've had
some code in the primary Javascript file (showimage.js) before that
works if the image has been cached but on the first load, it doesn't
resize properly which tells me it is probably because it is trying to
resize the window based on the image size but it isn't completely known
at that point. So I removed that code and tried placing the resizing
code in the second Javascript file (resizewindow.js). BTW I've tried
other code to open a popup image and automatically size it ie Q1443 at
irt.org but that doesn't do exactly what we need.
Even if there is another way to do this with one file, I still want to
figure out why this isn't working in case I run into it in the future.
I thought what I would need to do to use document.writeln to write
Javascript would be to escape any special characters and to break
apart the script tag ie
document.writeln('</SCRIPT>');
would become
document.writeln('</SCR' + 'IPT>');
I have a HTML page and 2 Javascript files. All files are in the same
directory and have permissions set correctly.
Here are the 3 files (keep in mind wordwrap has jacked up the
formatting):
index.html
----------
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test</title>
<SCRIPT type="text/javascript" LANGUAGE="JavaScript1.1"
SRC="showimage.js">
</SCRIPT>
</head>
<body>
Click the house<BR>
<A ONCLICK="newWindow1('house1.jpg','Nice House')"><IMG
SRC="house1thumb.jpg"></A>
</body>
</html>
showimage.js
------------
function newWindow1(pic,sitename)
{
picWindow=window.open('','','width=25,height=25,sc rollbars=1,resizable=1');
picWindow.document.writeln('<html> <head>');
picWindow.document.writeln('<SCR' + 'IPT type="text/javascript"
LANGUAGE="JavaScript1.1" SRC="resizewindow.js"></SCR' + 'IPT>');
picWindow.document.writeln('</head>');
picWindow.document.writeln('<body onload="resizewindow();">');
picWindow.document.writeln('<img src=' + pic + '>');
picWindow.document.writeln('</body> </html>');
picWindow.document.close();
}
resizewindow.js
---------------
function resizewindow()
{
// Do resizing here.
// Right now this isn't being executed
alert("resizing window");
}
Can anyone provide some pointers as to why this javascript is failing?
I'm using IE6 on Win2k and when I click on the image to open the popup
window, it does open the window but it is white with no content and the
system immediately goes from about 4% CPU usage to 100% and
consistently stays there until I kill that window with the task
manager.
Attached is a simple HTML file that adds and delete rows. In the add
row function I set an attribute "onClick" this triggers the
testMessage() function. When I try this in Firefox it works just fine
however on IE it just refuses to work.
What is interseting is the ROW that already exists has a similar
'onClick' event which works when the page is loaded, but subsequent
"row" additions to the table to not work in IE. Code:
two possibilities or the attribute type of script:
text/javascript (the one i usually use) application/x-javascript
what are the differencies between both?
depends on the html content?
for example html 4.0.1 versus xhtml 1.1?
I'm getting errors in Firefox everytime I try to run this frame resize code, but it works fine in IE. I can't seem to figure out what the problem is with it.
The error is: Error: theFrame has no properties
Line: 8
The line that the javascript console is showing an error for is in italics.
code from page:
<html>
<head>
<script type="text/javascript">
var defaultCols="100px,*";
var hiddenCols="0px,*";
function ShowHideMenu(){
theFrame = document.getElementById("framed");
if(theFrame.cols == defaultCols) theFrame.cols=hiddenCols;
else theFrame.cols=defaultCols;
}
</script>
<frameset cols="100px,*" name="framed">
<frame src="lframe.htm" name="frameMenu">
<frame src="mframe.htm" name="content">
</frameset>
</head>
<body>
</body></html>
Come someone let me know what I'm doing wrong here?
I'm already past the basics of Javascript, and i need something that takes me to the other level and teaches me the new technologies and cool stuff (drag&drop, AJAX, OOP in javascript, maybe XUL...etc). So far i found these two books:
1. Sitepoint's "The JavaScript Anthology: 101 Essential Tips, Tricks & Hacks".
2. Worx's "Professional JavaScript for Web Developers (Wrox Professional Guides)"
Both seems to cover very insteresting topics, but i can only buy one of them. So which one do you suggest?
and by the way, i've read the sample chapter 5 of Sitepoint's book, and it seems like the author(s) just put the solutions/codes there and let you figure them out on your own. Is this how the rest of the chapters are?