Possible To Communicate With Udp Protocol In Script?
Apr 22, 2011Is there any possibility to communicate with udp protocol in javascript.
View 4 RepliesIs there any possibility to communicate with udp protocol in javascript.
View 4 RepliesI'm making an Intranet site for someone who is not very familiar wit
making websites, thus I would like to make it as simple as possible fo
her when she needs to update it.
The intranet site uses frames - one menu frame that is always present
and one frame into which the content is loaded. The intranet sit
features many, many links to both internal and external pages - i
internal pages within the intranet and external pages on the interne
(http://)
What I would like to do is make it so that if a link is internal, th
content will load into the content frame and the menu frame will remai
at the side, but if the link is external, it will load the target int
the entire browser window. Using HTML, this would simply be a matter o
stating the href and then target="content_frame" for internal pages o
target="_top" for external pages.
But, like I said, I am making this site for someone who is not familia
with linking targets and even if I told her to define the targe
whenever she makes a link, she'd probably forget or get confused an
then wonder why external pages are loading with the intranet menu fram
still present or why intranet pages are loading with no menu at th
side!
While I have good experience with HTML, I am fairly new to JavaScript
which is why I am here asking for help.
I understand that Javascript can detect the protocol of a link,
believe you would use "link.protocol". In basic terms, what I woul
like to do is:
if link.protocol = "http://" then target="_top" els
target="content_frame"
But since I'm not familiar with the precise way of coding JavaScript,
would just like some help with transforming this into correc
JavaScript code so that it will work.
here is some code that I am working on to load styles into a page depending on the protocol of the URL. It seems to load the .css files correctly in FF but in IE I get an "document.head is null or not an object" error.
Here is the code:
window.onload = function(){
var protocol = document.location.protocol;
var ref = document.createElement('link');
[Code].....
I am developing a web-application which will start telephone-calls using a special protocol (callto: or phone:)
There will be two groups of users, one with a phone-client installed and support for the protocol,
and one without this client.
So I need to write a javascript-function to check if the callto: or phoneto: protocol is available on the client.....
i want to add text in a text field when somebody changes or edit a item with editform.aspx.
for example:
change of status-->log in text field: current user changes status to solved
all changes should be in one field.
is it possible?
that's my code...but i don't get thetext in text field to add new text.
var arrKommentare = ['Kommentare'];
var originalText = $(fields['Kommentare'].find('input').val();
$(fields['Kommentare']).find('input').val(originalText +"
Yournewtext");
I am making a site and I have an SSL certificate installed in the hosting. The problem I have is that any body can enter in the site's directories/files with https and also with http protocol :eek: .
I do not know how to do, so when some body try to open the directories/files with http the site is opened only with https protocol. With .htaccess, javasript, php, ??????
Is there a way to communicate between iframes on different subdomains?
e.g. from one.dot.com to two.dot.com? there is a security access
restriction passing javascript commands between subdomains that we've
run into.
To reference another frame, you simply need to step through the
frame hierarchy: `` parent '' is the page the frame is defined
in, `` parent.framename '' is another frame in the same frameset.
To access a variable called Moomin in a frame called Snork you
would use `` parent.Snork.Moomin ''. To call the function Snufkin
in that frame you would use `` parent.Snork.Snufkin() ''....
How can i use Jquery to communicate With database ?
my case is:
I use database Sql , i have j query grid view ,inputs text for First name,last Name ,and button submit
What i want Is:
When page loaded : Gridview loaded with user data[from database]
when user Filled inputs text and press submit :all user data saved in my db[sql] then reload gridview with user data.
is that any way to do that ?
I need to program a language protocol compatibility patch for multiple OS'. I don't know where to start, I'm new to programming BUT at least I know what is needed. If anyone is willing to help, I'm willing to elaborate.:thumbsup:
View 15 Replies View RelatedHow can I use XMLHttpRequest communicate from webpage to another? Currently I have a left/right frames, when the submit button pressed (item is added to the database), the left frame should automatically retrieve this item and display it on the page.
I thought of using Ajax (XMLHttpRequest object), but not sure how to use XMLHttpRequest object in two different webpages.
I have a Flash movie on a web page and I want to send parameters to it with JavaScript to have it go to a selected frame. The AS3 code receives its information via an ExternalInterface API. The following code parses the URL argument (?page=x) and I want to send the value (x) to Flash. Unfortunately, when creating the objMovie variable, it is always undefined, therefore getFlashMovie is undefined and Flash never receives the callback. Thinking that it was because the flash movie is not loaded yet, I created a button to call callToActionscript, and when I click the button, I get the same error.
(getFlashMovie("myFlashMovie") is undefined)
Also,
if (params)
always returns true, whether there are parameters or not. I don't understand that, either.
The code follows:
<script >
$(document).ready(function() {
var params=getQueryParameters();
if(params) {
callToActionscript(params[0]);
}});
function getFlashMovie(movieName) {
var isIE = navigator.appName.indexOf("Microsoft") != -1;
var objMovie = (isIE) ? window[movieName] : document[movieName];
alert(objMovie); //Always return undefined
return objMovie;
} function callToActionscript(page) {
var myMovie=getFlashMovie("myFlashMovie").sentToActionscript(page);
} function getQueryParameters() {
var query = window.location.href.split('?')[1];
//query won't be set if ? isn't in the URL
if(!query) {
return { };
} else{
var param = query.split('=');
} return param[1];
}
</script>
I'm trying to access a child iframe from my parent page. Is it possible? I've googled this extensively ut have found only scripts that allow me to communicate from the child iframe to the parent iframe. I want to do it the other way round. I need to be able to get in to the child frame and access it's DOM.
View 8 Replies View RelatedIm using a simple html/php form to communicate with twitter, im trying to add some java script validation but it isnt working i cant see why it isnt.
This is my code.
<?php
Javascript Form validiation:
I have a web site. The user input is a record id. When the form is submitted, the cgi code will check if the id is in the data base, if its in the database, it will be processed, and results being displayed. If the id is not in the database, I need to pop up a window telling the user the next available id, and when the user closes the popup window, the browser should go back to the first form submit page, with the next available id in the input box.
Right now, I can pop up an alert window telling the next available id, but have no idea how to go back to the submit page when I close the alert window.