Version Control
Is there a possibility to compare and visualize in a user-friendly way
the differences of two html files?
I need also something like a version-control. I think I could generate
for everychange of the text a new record in the database. But now I
need a tool (JavaScript, Java, etc.) to compare and visualize two
versions of these html-files online over a web-browser.
I know, this is not really a javascript topic, but perhaps here is
anyone how knows a tool for that.
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Which Version To Learn
Strange question i know, but i am trying to read javascript ( not necessarily clever enough to program), so that i can at least understand other scripts when incorporating them on my site as i feel this is important. Would it be ok to go straight to v1.5 or as there are differences between the versions, start at say 1.2 and learn the differences between the upgrades. I suppose i am hoping that i only need to start at 1.5 to make things easier.
View Replies !
View Related
Which IE Browser Version?
Does anyone have a quick script to find which version of IE a page is being viewed with? Specifically, I want to seperate version 4 from versions 5+, and post a warning against using 4. I expect I'll have to search out the (navigator.appAgent) string for the MSIE substring, but since I don't need it until tomorrow, laziness dictates I ask here before getting on with it. Is there another variable? a less cumbersome way?
View Replies !
View Related
Why Using Javascript Version File
I noticed that some sites use <script src='fineName.js?ver=XXX'></script(even google) Someone told me that it's for script changes, means - if the file in server has been changed than the new XXX will demand to load the new file. I find it hard to believe that it's true.
View Replies !
View Related
Browser Version Checking
I have just written a expanding menu which works great in IE6/NS7, what I have installed to check with, but the first person I went to show it to had IE 5.0, and guess what? It fell over. So, I am wondering if anyone has any ideas about how I can go about checking this in IE5. I am using XP and, while i haven't tried, my understanding is that I cannot have multiple versions of IE installed, is this right? If not where can I get older versions from?
View Replies !
View Related
Browser Version Detection: How?
I've have got this script, the only thing I want to be changed is the first part. It has to detect IE version 6 instead of just "Microsoft Internet Explorer". Can somebody help me out? I tried "Microsoft Internet Explorer 6" but that doesn't work. <SCRIPT LANGUAGE="Javascript"> <!-- bName = navigator.appName; if (bName =="Microsoft Internet Explorer") { document.write('<link media="screen" rel="STYLESHEET" type="text/css" href="stylesheet1.css">') } else { document.write('<link media="screen" rel="STYLESHEET" type="text/css" href="stylesheet2.css">') } //--> </SCRIPT>
View Replies !
View Related
Browser Version/redirect/politely!!
I've been to sites where they've got a script that bounces me out 'cause I don't use IE. That always leaves me feeling ruffled and having a door slammed in my face. I've been looking around and can't find a script that detects the following: First visit popup Browser Version JavaScript Enabled (Connection type would be useful like 56k minimum) It opens in a new window, gives the "option to continue" (click continue, closes window) Click "Cancel" would politely bounce them back from where ever they came from as well as closing the little window. Am I dreaming?
View Replies !
View Related
JavaScript Blocked By New Version Browsers
I have a lot of JavaScript code I wrote to add special features and effects to my Web sites. The problem is, with the latest versions of Web browsers, all browser-side scripts are blocked. Most users who visits will either not know how to adjust their security features to allow scripts or will not want to change their settings. In a case where the script is vital to the functioning of the Web page, what is the alternative? For example, one of my script is for a drop-down menu that takes the user to the selected section from the drop-down menu. The other feature I need is roll-over that highlight parts of a map so that the user can make a selection. Is there something I can add to my JavaScript code to prevent browsers from blocking it or is there a different way of using these features with a different script?
View Replies !
View Related
Reliable Javascript Version Detection?
I have been struggling around with trying to figure out a reliable manner for detecting the Javascript version a given browser is using. Basically, there are two half-decent ways that I have found, neither one being foolproof. One way is using javascript tags with the language attribute, as in the following code: Code: <SCRIPT LANGUAGE="Javascript"><!-- gVersion="1.0"; //--> </SCRIPT> <SCRIPT LANGUAGE="Javascript1.1"><!-- gVersion="1.1"; //--> </SCRIPT> <SCRIPT LANGUAGE="Javascript1.2"><!-- gVersion="1.2"; //--> </SCRIPT> <SCRIPT LANGUAGE="Javascript1.3"><!-- gVersion="1.3"; //--> </SCRIPT> <SCRIPT LANGUAGE="Javascript1.4"><!-- gVersion="1.4"; //--> </SCRIPT> <SCRIPT LANGUAGE="Javascript1.5"><!-- gVersion="1.5"; //--> </SCRIPT> This works fine but it is not very elegant. Another disadvantage is that it is not XHTML compliant. The other way is using some sniffer scripting like that found in the JavaScript Browser Sniffer (Web Reference). However, this is not very reliable as it needs to be constantly updated to take newer browsers into consideration. Also, on my system it gave an incorrect Javasctipt version of 1.3 when it should have given 1.5 (according to the first option above). I was just wondering if there was a more dependable way of doing this. Maybe it would just be better to avoid unnecessary headaches and restrict myself to W3C compliant brwosers.
View Replies !
View Related
RealPlayer Version Detection Script
I am fairly new the world of Javascript and need to write a javascript or vbscript to detect the version of realplayer site visitors have installed on their system, return the result, and if necessary redirect the user to a page were the player can be upgraded. Code:
View Replies !
View Related
New Version Of JavaScript Minifier In Perl
I've uploaded a new version of the javascript::Minifier module that was on CPAN. It was a translation of JSMin but I rewrote it so it now handles missing semicolons, + ++ code, and leaves those freaky IE conditional comments in the output. The goal was that if working code is input then working code is output where working == working. Breaking code that works is not such a good idea. Code:
View Replies !
View Related
Pop Up Control
I've opened a pop up with javascript. How would I go about controlling the parent window from the pop up, ie. changing it's content: I tried this in in the pop up <a href="new_page.htm" target="parent"> but that just opens up a new window.
View Replies !
View Related
How Do I Add A Control To A Form.
I have a form frm1 . The form is generated by a "control" that is placed on the page - I have no access to the source to modify the controls. I can access other hidden controls within it by referencing: ocontainer.frm1.txt1.value; I would like to insert my own hidden control that can be posted back to to my page so I can do something with it. How can I do this from clientside at runtime?
View Replies !
View Related
How Do I Get The Value Of A Form Control?
In HTML documents, named forms may be referred to as named properties of the `` document.forms '' collection, and named form controls may be referred to as named properties of the form's elements collection: var frm = document.forms["formname"]; var contrl = frm.elements["elementname"]; The (string) value property of such controls can be read directly from the element:- var value = contrl.value; var value = (+contrl.value); //string to number: see 4.21 One exception is where the control is a SELECT element, and support for older browsers, such as NN4, is required: var value = contrl.options[contrl.selectedIndex].value; Another exception is where several controls share the same name, such as radio buttons. These are made available as collections and require additional handling. For more information, see:- http://www.jibbering.com/faq/faq_notes/form_access.html
View Replies !
View Related
Control Checkbox
I have a page with many links to media player playlists. I want to place a checkbox next to each title so that the user can check the box when they have listened to the selection. The boxed needs to remained checked when the user comes back to the page so that they know where they left off. I also need to be able to manually uncheck the boxes. Basically, I need to be able to check and uncheck the box at will and have it be the same when I come back to the page. I have looked at some onclick scripts but nothing has worked yet. There may be a better way to do this that I have not thought of. Dynamic HTML, applets, etc.
View Replies !
View Related
Listview Control
i am just wondering if there is an easy to use listview control , or if anyone can provide me somehelp on how to develop the functionality that i need if not. The functionality i need is 2 columns: position and name the user enters the names and they must be able to insert new names and delete existing ones they also must be able to reorder the position of the names, e.g. maybe by pressed move name up or move name down buttons
View Replies !
View Related
Master Volume Control From IE6
I'm developing a information site within a kiosk. I need to make it speach enabled. However as it's I'm only producing a proof of concept the speach software isn't particularly intelligent. Is there a way that I can mute the master volume then unmute using either Javascript or VBScript on the click of a button placed on the page. There are no issues here about whether the user wants this or not as its not based on the world wide web, just within a kiosk. If Javascript or VBScript can't do this, are there other options?
View Replies !
View Related
Menu Control In Javascript
I would like to set dynamically the pressed item of a menu of a form in javascript. First, how to get the value of the item that has been selected with the mouse. Then how to set it in javascript. I don't know the object name. I do that like form.myfield.value = xxxx with an input text, but it it doesnot work for menu!
View Replies !
View Related
Little Help With Dropdown Control (Ajax)
I've been looking through many AJAX tutorials but I just keep getting lost, they are all written by giving the final source code, and don't really help me. What I want to do is VERY elementary, and I was wondering if the kind community of sitepoint would be willing to help me out a bit. I have a dropdown box with any number of selections (lets say 3 to keep it simple) and depending on which one of those selections is made, an image loads beneath the dropdown box.
View Replies !
View Related
Control Over IE Window Closure
I am currently strungling with the fact that I want to control the browser closure. In fact, I have a webbased application in which I use a wizard. Ones the wizard starts, a lock is set on specific objects in the db. On all pages of the wizard, the user get the possibility to exit the wizard by clicking on a custom "Exit" button. That way, I know that the user has left the wizard and that way I can unlock the locked objects in the db again. So far, so good. But users are used to close browser windows by clicking on the "X" in the titlebar. If they close a window that way, the locks aren't unset and no other user may start the wizard again. If I should know that he had clicked on the "X", I could unlock the objects. I have searched a lot on the net but all results aren't sufficient for me. Some solutions which don't work: 1) onunload event: =Also called when the window is refreshed or forwarded. 2) "titlebar = no" property while opening the first page of the wizard, is not working (the titlebar is still enabled). And even then, the users can close the window by clicking CRL-F4. This key combination isn't disabled by the "hotkeys = no" property. Note: if the client's pc crashes or if the user kills the wizard process via the task manager (exceptional cases), they have to call maintenance to reset the locks. This is a requirement, defined by bussiness.
View Replies !
View Related
Shift+Control Key Binding
I started playing around with this keyevent thing and said, hey this works pretty good, I want to add keyboard shortcuts for everything. I thought I had come up with a solid system, based on some other threads I read in this forum. It works great in Firefox, but IE seems to handle the Control key differently, also IE seems to ignore the arrows. Code:
View Replies !
View Related
Control Collection In Javascript
I have a .net application that I am trying to add some javascript code to for a client-side execution. What I want to do is resize all the HTML text fields on my web form, but instead of writing a line for each text box I would like to loop through a collection of controls and resize the control if it is a text field. Is there a way to do this in javascript? The function below is what I have been toying with for the past couple of hours. Another idea was to use a css, but I can't find an element for the text field. function Test() { Tarray = new Object; Tarray = document.Form1.children for (var prop in Tarray) { //document.writeln(Tarray.toString); var s; s = prop if (Left(s, 3) == "btn") { prop.height = "20px"; } } }
View Replies !
View Related
Javascript Font Control
I have been unable to reduce the size of the text that goes along with my image slideshow(the play, next, stop buttons and also the captions for the pictures) without reducing the size of my title text(my friends).
View Replies !
View Related
How To Determine If One Control Overlaps The Other?
I know how to find a controls' position obviously (i.e.style left, right, top, offset, etc.), but what I'm a little stumped on is, if given two controls' positions, how can I tell if one is overlapping/ invading the space of the other? For example, I have an AJAX dragpanel and am experiencing the common 'bleed through' of dropdown controls when I drag the panel over them. Naturally the customer doesn't like this. I experimented a little with the IFrame solution, but did not have much luck. It seems easier now to just use the 'ondragend' event and show/hide dropdowns accordingly. Does anyone have a piece of code where, given two control objects as passing parameters, it returns true or false in regards to them overlapping or not?
View Replies !
View Related
Firefox And MediaPlayer Control
I´m having a lot of problems in putting a midi player in my page. At the end, after some strange problems with Quicktime, I decided using only Media Player until I could fix that. Then, I´m using an <embed> so that all browsers recognize it, and a playlist with .wax extension, only to be played in Wmplayer. Code:
View Replies !
View Related
Control Height And Width Of An IMG Tag?
I was wondering if you can in CSS create an <img> tag with an Id? Then use that image tag in the body tag to refer to make it the background image. If you can I think I would then be able to resize the background image using DOM and javascript to fill the browser window without having to repeat the image, maybe? I'm thinking this might work because. 1. Can't you create a style for any html or xhtml tag (element)? 2. The image tag has a height and width attribute. 3. If a tag (element) has an Id in the CSS you can control its attributes with DOM or javascript? 4. I should be able to use the Image tag by Id reference in the body tag - background attribute?
View Replies !
View Related
Form Control With Dropdown
onchange="p_complete.disabled=!(this.selectedIndex==2)" Which disables form element 'p_complete' is the third option is selected from this drop down. What I need to do is disable that element if the first, second or third option is selected. Meaning something like: onchange="p_complete.disabled=!(this.selectedIndex==0 or this.selectedIndex==1 or this.selectedIndex==2)" ...but of course, obviously this doesn't work or I wouldn't be posting here.
View Replies !
View Related
Control Refresh Mimic
Is it possible to mimic the Ctrl. + Refresh functionality with a button in a webpage using javascript, ideally by placing a button(or link) on a page that when clicked would have the same effect as holding down the Ctrl. key while clicking on the refresh button on the browser.
View Replies !
View Related
Recursively Find A Control?
I have some web-server-side code that may place a textbox anywhere on a page. It might be on the page itself, it might be within a <form>, it might be within a <div> in the form, or in a <div> inside the first <div>. Is there a script out there that will let me, given just the control's ID, recursively find it anywhere on the page so I can set focus to it?
View Replies !
View Related
Google Time Slider Control
I want to know if any one has used the kind of time slider control which is used in the google finance. I need to implement a time slider control of similar sort.plz let me knw if any body has any information abt it.
View Replies !
View Related
Moving Layers And Control Speed
I have to move 2 layers (one from up to center and one from bottom to center) and I found this way: <div id="up" style="position:absolute;left:10px;top:-20px">Up</div> <div id="down" style="position:absolute;left:10px;top:200px">Down</div> function movediv(){ var u = document.getElementById("up") var d = document.getElementById("down") u.style.top = "100px"; d.style.top = "100px"; } It doesn' work...because: 1) They don't move at "the same time"...I would like to obtain simultaneous move. 2) I can't control speed so moving is invisible!
View Replies !
View Related
|