Android :: Add JavaScript Interface To A Browser?


Is it possible to add a JavaScript interface to the Android Browser the same way one can be added to the WebView Component as illustrated in this demo. My particular use case only needs JavaScript -> android so that I can send it back to the previous activity.

View Answers
Very similar questions
Android :: WebView Link Click Open Default Browser stackoverflow.com

I have an app that loads a webview and all the clicks are kept within the app. What I would like to do is when a certain link, for example, http://www.google.com is clicked within the app it opens the default browser.

MVC :: Html Helpers With Javascript... Include Javascript In Helper But Avoid Adding Javascript Twice? forums.asp.net

So I love MVC and I love Html Extensions and now I want to push it a little further... If I wanted to create something like an Html Helper that creates a javascripty style Calendar (for the sake of example as I don't want a calendar :-) how could I wrapper the javascript into the helper so that the consumer of the helper does not have to include the javascript on the page. MOST IMPORTANTLY though I want to have many instances of my calendar on the same page, if I put the Javascript in the Html Helper it will get written out 3 times to the page which is no good, so I am wondering how to get around this. Essentially I want to know whether I can access the page's DOM whilst the Html Helper is being run so that:1) I can add javascript script/src tags (did I mention I don't want to have inline javascript :-)2) I can query the DOM to check whether the required script has already been included by a previous call the same Html Helper.This may be a no-brainer for some mvc/asp guru out there, it may also be the case that you can't access the DOM at runtime via c#

Adding A Link To A Interface For A Website Or File www.xtremevbtalk.com

How do you add a link to the interface so that a usercan click on it to go to a website? Thanks in advance!Ian

Android :: People Force Closes - Cannot Add / Link Contact androidforums.com

I'm having an issue linking my wife to her Facebook profile in the contact "people." When she calls her number comes up. After I hang up, I try to "connect with person already in contacts" and it forces "People" to close. I tried to add her manually and it deleted it before my very eyes while I was within "people." I did it using the Google phonebook and not the phone's. Is there any issue with this, and what's the difference between the Google and Phone options (benefits, etc... ?).

Android :: Manually Edit - Add Contacts Sync W/ Facebook androidforums.com

Is there anyway to re-establish or manually add the Facebook syncronization option to an existing contact in my Contacts app? I lost the Facebook sync icon in the contact information and this is inconvienent at best, and possibly is the cause of disabling the phone functionality at worse. Subsequent behavior on at least two occassions has shown that attempts to dial out using this particular contact locks up the dialer, causing multiple forces closes, and essentially disables the phone functionally both in and out of the phone for long periods time (10-20 mins) until the application can be correctly cleared and purged from memory. I was able to successfully sync my Contacts with both my Google contact list and then all my Facebook friends. However some of the contact information was not exactly how I preferred and attempts to update that information using the Google contact list was not always successful. Not entirely sure if this is a bug or by design. I was able to successfully modify one contacts name with Facebook sync from first name first to last name first (to correct sorting to my preference). A second contact wouldn't modify no matter if I updated the name information on Google contact or on the phone itself. Finally I attempted to delete the contact and re-add it. This worked but now I lost its Facebook sync (no Facebook icon to click within the contact information). I'm not sure if this detachment is causing the dialer problems. After syncing all my Facebook friends with my contacts (for complete-ism), I successfully deleted some Facebook friends from my contact list. But what if I want one back with Facebook sync, is that possible?

Android :: Syncing Facebook - Settings - Accounts - Add Account - Facebook androidforums.com

I have the Samsung Moment on Sprint and I gotta say I do love everything about it, but on thing is troubling me. When I go to: Settings>Accounts>Add Account>Facebook It just takes me back to the "Add Account" screen. There's no option to even input my information to sync the account. Does anyone know what could be causing this problem?

Android :: How To Add More Bluetooth Profiles? groups.google.com

Now android only supports bluetooth voice,How to add more bluetooth profiles,e.g.A2DP,OBEX.

Web Forms :: Browser System Info / Get Browser Operating System Name And Version forums.asp.net

How to get browser operating system name and version in asp.net2.0 (c#)

Mysterious Space Added By Mozilla Browser? forums.asp.net

I am testing my page using mozilla firefox 3.5.3 version. I have this annoying problem wherein a mysterious space is being added automatically on top(between the top side of the browser display window and the first element within the div) when I use a divEx:html code: <div id="headerdiv">--%> <%-- <div id="homepicdiv" style="float:left;margin-left:20px"> <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="pictures/homelogo.gif" [code]...

Adding Event For Dynamically Added Command Button In Form visualbasic.ittoolbox.com

I have created a commnad button in Form Load subroutine as under.Dim C1 As CommandButtonForm1.Controls.Add "VB.commandbutton", "C1", Form1With Form1!C1.Visible = True.Caption = "Find Square Root".Width = 2000.Top = 3700.Left = 1000End WithNow I want to add Click event for this button C1.How can I?If coding is given, it will be better.Vijaykumar Dave

Android :: Remove Android Default Link Styling In Webview stackoverflow.com

When you click a link in the Android browser, the target link area gets highlighted with an orange box by default. A longpress then opens up the context menu for link handling (copy, paste, new window, etc). Is there a way to disable either / both of these in webview? I'm using the highlight code in scriptaculous and the default android link styling is being laid over top of the effect.

Motorola Droid :: Adding Contacts To Phone W/o Adding To Gmail androidforums.com

I want to add a contact just to my phone and not to my gmail account.Whenever I start to add a contact (phone, 208544.menu, +contact, create new contact,) the next thing it forces me to do is to choose an account to create the new contact under and it lists my 3 gmail accounts.I have no option to just put it on the phone.Any ideas here?We do the same thing on the Incredible but it gives us the gmail account and the phone to choose from but not on the Motorola.

Javascript :: Flash Twitter API With JSON? stackoverflow.com

I have read a lot about parsing JSON with Actionscript. Originally it was said to use this library. [URL] but it seems Flash Player 11 has native support for it now. My problem is that I cannot find examples or help that takes you from beginning to end of the process. Everything I have read seems to start in the middle. I have no real experience with JSON so this is a problem. I don't even know how to point ActionScript to the JSON file it needs to read. I have a project with a tight deadline that requires me to read twitter through JSON. I need to get the three most recent tweets, along with the user who posted it, their twitter name and the time those tweets were posted. The back end to this is already set up I believe by the development team here, therefor my JSON files or XML just needs to be pointed to and then I need to display the values in the interface text boxes I have already designed and created.

Link Button And JavaScript / Change A Standard HTML Input Button To A Link Button forums.asp.net

I need to change a standard HTML Input button to a Link button but am running into problems because the existing code calls a javascript function.  The function basically does the same as the browser back button.  When I add the code and set the property runat="server" I get a "CS1026: ) expected".  Quite new to ASP,net  (VS2010) so could be going about this the wrong way.  [Code].... [Code]....

Hot Link Prevention And Browser Security www.webhostingtalk.com

I recently initiated "Hot Link Prevention" on one of my web sites on my Dedicated server (via CPanel). It woks well in re-directing hotlinked images to a small image that says "Unauthorized Hotlink Image." This of course prevents other web sites from leaching my bandwidth. However, I have had a number of people complain that when they visit my forum, they don't get my site's images, but instead see the Unauthorized Hotlink Image. The common thread seems to be the people with the problem are using Security Software. In one case, a guy is using Norton Confidential. Another guy is using some Security software provided by his ISP. I'm guessing that this security software is somehow messing with the Referer in tehir browser and confusing my server into thinking the images are being hotlinked from some other site. Short of turning off Hot Link Prevention, does anyone have any suggestions to tell the folks...are there settings in their Security Software for example that will prevent the problem when they visit my site?

BB Torch :: Cannot Access Internet Browser Or Open Any Link supportforums.blackberry.com

Starting yesterday afternoon, I am unable to access an internet browser or open any link on my Torch. I do not have WiFi turned on. The device almost appears to 'freeze' when I am attempting this action. I have completely cycled off and back on....

Read Value From File Method With JavaScript www.webmasterworld.com

I'm trying to display contents read from a file by php with a JavaScript function. I'm not sure what I'm doing wrong. function showMsg() { <?php $lines = file("text.txt"); ?> alert("<?php echo $lines[0];?>"); }

Prevent Browser Scrolling To Hash On Page Load? stackoverflow.com

Using localscroll on ready but the browser snaps to hash on ready. How do i prevent that and have it scroll to the top no matter what?if this is not possible. How do you offset the position of the windows.location of hash?

Use A External Javascript File Like External CSS? www.daniweb.com

i have been using php for past one month only and now im using javascripts with php too...but my javascript functions have grown out of proportion ...I want to make a SEPARATE file for JAVASCRIPT just like we do it for EXTERNAL CSS...how can i do that and is it possible to make a seperate javascript file and call the functions from my php code...?

Make Own Web Browser With Command Button www.vbforums.com

Hai, i need some help. I want to make my own web browser with 2 command button, one for move up the screen, and one for move down the screen. Is anyone can help me with this problem? Thanks.Regards,Yosef

Interface Matlab (link Between VB And Another Program) www.xtremevbtalk.com

I have an array (2D matrix) in VB and I would like to "copy" it into Matlab and analize this this matrix with a function from there. The result should come back into my program in VB (a new array). How is this possible to realize? Is there a possibility making it with ddl files? How?Please post your ideasThank you for your helptomaa

Write To Javascript Array Within Loop? stackoverflow.com

I have a php loop that is echoing out geolocation values. How can I get it to write those values to a javascript array, so I can then use them to plot points on an HTML5 canvas? The php loop is as follows <ul id = "geo-list"> <?php foreach($data as $phrase) { ?> <li><?php[code]....

Open IE Browser And Go To Website www.vbforums.com

Hi,Is it possible to open Internet Explorer and automaticly surf to a website?

VB Interface To Website... www.xtremevbtalk.com

A friend wanted me to find information on making a visual interface to his website (like, access the site from an exe). Since he made the website himself(asp.net), I assume it wouldnt be that hard to structure the app for grabbing information from the site, and sending it to the site.(although from vb6)Does anyone have any information on doing something like this?Thanks in advance, rkinasz

Link Tables Interface www.xtremevbtalk.com

I'd like to develop an interface similar to the that within MS Access where users can link tables using the Query design view by dragging a column in one table and dropping it on a column in another table. Drawing a link between the tables would be required as well (see attached). Any examples would be great.

Just A Newbie, Trying To Link A Vb Interface To Ms Access www.xtremevbtalk.com

Can anyone point me in the right direction for some code that I can read to figure this out. I have my interface created in vb and I just want to be able to input a record in my textbox and have it add itself into a table i created in access. Here are my object names in vbtxtUserNamecmdAddI have toyed around with a bunch of code under the cmdAdd command button but to no avail.My table in access is calledtblUserand the field is calledU_nameI have named the database username.mdbany help is appreciated guys, thanks.

File I/O And Interface www.xtremevbtalk.com

Hi guys,Just interested in your opinions on how to solve this in the best way possible.First of all I have a listbox on the left side of the application (or if you know a better component for this solution, treeview etc.) that will be filled with items from the user. Now, each item will have multiple textboxes on the right side with information tied to it. So each time one click on the item the textboxes will have to be filled with the information that is tied to that particular item. That's the interface thing.Now for file. How can I do the "connection" between these two, I mean, the file saving itself ain't a problem but to match a listbox item with it's own textboxes before saving it all to a file?

Sybase Interface File www.vbforums.com

Hi Team, the app I'm working on prepares an ADO connection string that looks as followsDriver={SYBASE ASE ODBC Driver};Srvr=TEST1;DB=dbname;Uid=userid;Pwd=passw0rdThe access settings are correct. When I try to connect I get a message saying "Unable to locate Inerfaces File". It seems that ADO knows it needs to use an interface file if it's connecting to Sybase. How do I set this interface file location?ThanksFW

HTC Aria :: Unable To Install Non-market Apps androidforums.com

AT&T locks its latest Android phone -- the Aria -- out of sideloading apps, too | Android Central.I thought this phone suppose to be open.

Sony Ericsson Xperia X10 :: Getting Timescape To Use Facebook Application And Not The Browser androidforums.com

Is there any way to get timescape to open the facebook app instead of the web browser when a facebook "leaf" is touched. I have it set that Twidroid will open for twitter "leaves" but I can't figure out how to get it to use the Facebook app.

Android :: How To Link Browser To Search Application In Market? groups.google.com

Using G1, go to http://www.myspace.com. Notice the site is able to detect the user agent from the browser and provides a link to search the MySpace application on the Android Marketplace. Google's http://code.google.com/android/devel/sign-publish.html# publishing provides options to search, e.g. http://market.android.com/search?q=pname:<package>. This does not work for me.

Android :: Open Link In A New Tab When Using Dolphin Browser? androidforums.com

How do you open a link in a new tab when using the dolphin browser? I assumed long pressing the link would bring up an option but it does not, unless its just mine. I am running 2.0.1 on droid if it makes a difference.

FQL MultiQuery - How To Send Result List To Browser In JSON stackoverflow.com

I am using the Facebook Toolkit and making a request using FQL.Multiquery. I am using the following code which returns the correct data: Dim query1 As String = String.Format("SELECT post_id, actor_id, target_id, message FROM stream WHERE source_id in (SELECT target_id FROM connection WHERE source_id={0}) AND is_hidden = 0", FBuserId) Dim query2 As String = "SELECT pic FROM user WHERE uid IN (SELECT actor_id FROM #firstQuery)" Dim queries = New Dictionary(Of String, String) queries.Add("firstQuery", query1) queries.Add("secondQuery", query2) Dim result As List(Of Facebook.Schema.fql_result) = q.Multiquery(queries) When I run this 'result' list is populated with the results of the two queries in XML but I am unsure how I can send this list to the browser in JSON. I am using asp.net MVC.

Javascript - .Net Json Serialization Format? stackoverflow.com

I was hoping someone may be able to point me in the right direction in regards to the format of a Json.I've never really worked with Json's and Serialization before so it's all a little new.I need to return a Json from .Net in the following format.[[Date.UTC(2011,12,14,8), 8], [Date.UTC(2011,12,14,9), 1]] I'm almost there but am struggling with the format of my string, as by default the string is quoted. This is what I have: [Code]...

Javascript - Accessing Elements Of JSON Object Without Knowing The Key Names stackoverflow.com

Here's my json: {"d":{"key1":"value1", "key2":"value2"}} Is there any way of accessing the keys and values (in javascript) in this array without knowing what the keys are? The reason my json is structured like this is that the webmethod that I'm calling via jquery is returning a dictionary. If it's impossible to work with the above, what do I need to change about the way I'm returning the data? Here's an outline of my webmethod: <WebMethod()> _ Public Function Foo(ByVal Input As String) As Dictionary(Of String, String) Dim Results As New Dictionary(Of String, String) [Code]....

JavaScript Serialize Array To JSON? stackoverflow.com

I have "Form Designer" web application, in which I need to post the controls of the new form to an ASP.Net page to insert to DB, each time I create form control. I push it into two dimensional array, when user click save, this array will be serialized and sent to Server Page using Ajax. Array string After Serialization Looks Like : [ [ [code].....

Javascript - Return JSON From ASP.NET .asmx? stackoverflow.com

I have the following test method:Imports System.Web Imports System.Web.Services Imports System.Web.Services.Protocols <WebService(Namespace:="http://tempuri.org/")> _ <WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _ <System.Web.Script.Services.ScriptService()> _ [Code]... Even with the ResponseFormat attribute added the response is still being returned as XML rather than JSON.

Python :: Json Communication Between Flash And Javascript? stackoverflow.com

note: using django/python/javascript/flash So its been two days since I'm stuck at the error. I did the things you told me to and found a couple of ways around it but nothing worked. These are the results.Javascript does not receive the normal string it has to be a json object so. in views.py somestring = json.dumps("HELLO WORLD") which renders this in HTML "HELLO WORLD" and in javascript it is rendered like this a240527176321_quote_hello Now, since it is a json object I need to convert it back in flash. But when it gets in flash where I receive it like this function something(hellovar){ ..... ...... } it does not even come inside the function.

Flash :: JavaScript - Parse Some Configuration Files In The Flash Default Directory stackoverflow.com

I use javascript to play a flash file, and it plays correctly. But it also needs to parse some configuration files in the flash default directory. So the problem is: the flash file I am going to play can't access its config file for the wrong working directory. For example, I specify the swf path value as 'falsh/list/test.swf', so my javascript will give this swf value by swfobject.embedSWF to play this flash. But the flash file flash/list/test.swf needs to parse a config file in the same directory with flash file like flash/list/config.xml. The problem is flash attempts to parse this config file under the current javascript working directory. [Code]...

Add A Javascript File To The Page Head From A User Control? stackoverflow.com

how can i add a javascript file to the page head from a user control?

Web Forms :: How To Open Javascript Url Link In New Full Size Window forums.asp.net

How can I change the follwoing code to open the link in a new full size window, I don't want to navigate there because they want to just view the next page and not leave existing page. lblProcessNum2.Text = "" & myDataTable.Rows(0)(4) & ""

Javascript - How To Open The Link In New Tab stackoverflow.com

Possible Duplicate: Programmatically open new pages on Tabs I have a link in my page and i want it to be opened in a new tab when the user clicks it?

ActionScript 3.0 :: Call Javascript Function With JSON Through External Interface? www.actionscript.org

I need to call a function in JS that's expecting a JSON object. Can I do this from External Interface? The company's example (after the include file url) in HTML looks like this: //there's an js include URL earlier// Shopwithme.Initialize({ "id":"prod1234", [code]... But, I need to dictate these vars through Flash. How do I call this function using External Interface?This is my EI code, but I'm obviously off base, since it's not working: ExternalInterface.call("Shopwithme.Initialize",[{ "id":"prod1234", "type":"2","URL":"http://www.somelink.com"}]); What do I need to do to call this javascript?

How To Save And Secure Reliable HTML For Browsers IE7+ FF And Chrome forums.asp.net

I have an [URL] HTML editor, and it has an on/off switch for UNICODE. What should I do ? I am allowing users to save HTML posts to a SQL server varchar(MAX) field. TO read saved HTML posts I bring HTML back into a TABLE with  literal label. I do .innerHTML = SAVEDHTML So I want safe and secure reliable HTML for browsers IE7+, FF and Chrome ?

MVC :: Reuse JavaScript Snippets - Displays A Modal Window After Clicking A Link forums.asp.net

I have now a fancy JavaScript which displays a modal Window after clicking a link. I'd like to reuse that code with small changes. eg. different IDs, different labels... I know the possibility to create a Helper. But I don't want a [Code].... thing. I'm sure there is an elegant solution for that. RenderUserControl is maybe a solution. But then it must provide the possibility to assign parameters to it, directly in the View.

Send Mail Through JavaScript In HTML Page Secretly? stackoverflow.com

I am using a mailTo command. On posting it displays Outlook Express on my computer. But I want to send secretly, data to my email form client end.

How To Call Code Behind Button Click Event Or A Code Behind Method From Javascript www.vbforums.com

how do you call code behind button click event or a code behind method from javascript.

Call Javascript Function From Code Behind After Server Side Code Executes stackoverflow.com

I have an asp.net button, that when clicked calls a code behind function. The function does some evaluation, and then I want to call javascript from within this asp.net function.

Visual Studio :: Automatically Create The Asp Control Event Code In Code Behind.. forums.asp.net

<script language="javascript" type="text/javascript"> // <!CDATA[ function cmdSignOut_onclick() { / ]]> </script> instead, how do I get it to create the code behind?

Javascript - Callback Function With Parameters stackoverflow.com

I'm using AJAX Page Methods, but I can't seem to be able to pass the needed parameters: function getFavStatus() { //favs is a list of DOM <imgs> that I want to modify their img.src attribute for (i = 0; i < favs.length; i++) { PageMethods.isFavorite(favs[i].alt,setFavImg(favs[i])); } } function setFavImg(fav, response) { fav.src = response; } The problem that I can't figure out is how to use the "response" from PageMethods, AND pass the DOM object to the callback function. I've also tried doing something like this: function getFavStatus() { for (i = 0; i < favs.length; i++) { PageMethods.isFavorite(favs[i].alt, function (response) { favs[i].src = response;}); ); } } In this case, the response works properly, but i is always > favs.length, because it has already iterated through the loop... Edit: My PageMethods.isFavorite signature is: [System.Web.Services.WebMethod] public static string isFavorite ( string p_id )

Javascript - Display A Truncated String Using Eval stackoverflow.com

I have a ASP gridview control. I have a ASP label control in the item template column. I bind data to the grid using - <ItemTemplate> <asp:Label ID="lblDesc" runat="server" Text='<%# Eval("Description") %>'></asp:Label> </ItemTemplate> But, the value of this string can be upto 80 characters. But, I cannot afford to have the column length to be so high. And, there are limitations so I cannot use Wrap="true" and limit the column width. So, I figured the solution could be to display only about 50 characters in the grid and display the entire string as a tool tip. I managed to do this by using this - <ItemTemplate> <asp:Label ID="lblDesc" runat="server" Text='<%# Eval("Description").ToString().Substring(0,50) %>' ToolTip='<%# Eval("Description") %>'></asp:Label> </ItemTemplate> This displays the first 50 characters of the string in the grid column. And, the complete string is displayed as a tool tip when the mouse pointer hovers over the text. But, the problem arises when the string length is less than 50 characters. In this case, an exception is thrown. I tried modifying this piece of code to allow conditional display by checking for the string length. But, I could not get this to work. Is there a way to fix this problem? Can we call a javascript function within Eval() ?

How To Set Browser Properties forums.asp.net

I know by using Request.Browser and then by either selecting ScreenPixelHeight or Width that I can grab the browser's height and width. My question is how, can I set the height or width the other way without using JavaScript?

What Is The Difference Between Client Browser's Submit Mechanism And The Postback Mechanism stackoverflow.com

Button.UseSubmitBehavior property is used to gets or sets a value indicating whether the Button control uses the client browser's submit mechanism or the ASP.NET postback mechanism. So, What is the difference between client browser's submit mechanism and the ASP.NET postback mechanism?

Browser Not Handling Exception From AJAX Panel - C# stackoverflow.com

i am having trouble catching errors in an AJAX panel. Even when i throw an exception in the c# code behind the front end completely ignores it. Here is the code i have setup, can anyone see why? I ideally want to show a js alert window on error. protected void btnX_Click(object sender, EventArgs e) { throw new ApplicationException("test"); } protected void ScriptManager_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e) { ScriptManager.AsyncPostBackErrorMessage = e.Exception.Message; } Markup: <script type="text/javascript" language="javascript"> Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler); function EndRequestHandler(sender, e) { window.alert(e.get_error().name); } </script> <asp:ScriptManager ID="ScriptManager" runat="server" AllowCustomErrorsRedirect="true" OnAsyncPostBackError="ScriptManager_AsyncPostBackError" />

Web Forms :: Blocking Autocomplate Textbox On Browsers? forums.asp.net

I have a bookingwith credit card page in my application and users will enter their crdit card details inside the textboxes. but after they  enter them and post it the browser cache the data and after that in the same textbox, it can be autocomplated.

Disable Webform And Display In Browser? forums.asp.net

I've seen two sites that have this really neat feature that's similar to a Winform dialog box, but better. I don't think I'll be able to explain it properly, so I captured some screenshots. In ebay, this is what you see when you browse listings and sort by shipping cost without having set your location: [URL] In Badoo, it's basically the same thing. If you haven't set a language preference, then it'll display a similar type of dialog box: [URL] Is this possible in asp.net? If so, would it be an add-on to my current webform, or would I need to rebuild the webform for this purpose?

C# - How To Efficiently Send Large Files From The Database To The Browser stackoverflow.com

In my web application I am working with files. Some files are very large. I use Response.Write() to write the file to the browser. This goes well for the smaller files, but for large files this can take a while and the bandwidth is fully used. Is it possible to split large documents and send it piece by piece to the browser? Are there other ways to send the document quicker to the browser?I hold the document as a property of an object.

Javascript To Set An Selected Index For RADcombobox To 0? stackoverflow.com

need javascript to set an selected index for RAD combobox to 0

AJAX :: Detect Which Tab Is Selected In JavaScript? forums.asp.net

I use in my Webapplication the Tab-Control. How can I detect which tab is selected in JavaScript?

Forms Data Controls :: Handling A Gridview With Multiple Checkboxes And Radiobuttons Using Javascript forums.asp.net

I'm fairly new working with Javascript. I'm working on an issue where I have a GridView with multiple Checkboxes and Radiobuttons. A user can check multiple checkboxes and if a radiobutton is selected, a checkbox has to be selected. This scenario is working fine, presently with existing asp.net code. But, I want to automate it using Javascript, so that I could avoid a postback. 

Ajax - Long Process And Sending Updates To Browser stackoverflow.com

I've asked this before but I was hoping for another answer and perhaps some code samples because I've been having a difficult time with this. I have an asp.net page. The user hits the "Run" button and I have code IN AN ASSEMBLY, not in the APP_CODE folder that is called and runs a long process that moves product info from a file into the database. While the user waits, I would like them to see status updates like what product the import process in on and status info. I'm assuming I'd break off into another thread and use Ajax but I have no idea how to do this.

Javascript - Multi-line Title In Div Tag? stackoverflow.com

I'd like to have the following div tag display a tool-tip on mouse hover. But, it displays it as a single line. How can I get it to display several lines? <div title="Have a nice<br />day">blah</div>

.net 4.0 - Webform Routing With Javascript stackoverflow.com

I am using asp.net 4 routing and im enjoying it so far. I have one problem only with my javascript files. I am using a masterpage to add my css and javascript. The css is working fine however the javascript is not. My links from my masterpage look like this <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="~/_styles/css/core.css" rel="stylesheet" type="text/css" /> <link href="~/_styles/css/facebox.css" rel="stylesheet" type="text/css" /> <script src="~/_styles/js/jquery-1.3.2.min.js" type="text/javascript"></script> <script src="~/_styles/js/jquery.validate.js" type="text/javascript"></script> <script src="~/_styles/js/facebox.js" type="text/javascript"></script> <script src="~/_styles/js/corejs.js" type="text/javascript"></script> Why does my css load correctly but the js doesnt?

Web Forms :: List Box Value Is Not Populated And Reflected In Code Behind With JavaScript forums.asp.net

I have a listbox that I am populating at runtime with javascript. After the listbox is populated I am using a button to get that value. on button click when I am trying to get the value it is the listbox item count is 0, Can anyone tell what's wrong after t he javascript populates the code,I have written the code in button click : for (int i = 0; listbox1.Items.Count - 1; i++) { string s = listbox1.Items[i].ToString(); } the value of count is showing as 0, though it has the values populated. What I am missing ?

Passing Complex Objects To Javascript Via IScriptControl? stackoverflow.com

I'm playing around with a asp.net page that's using the IScriptControl interface to pass data from the code-behind to the custom javascript object running on the browser.I'm passing a number of properties via IScriptControl.GetScriptDescriptors(), and they're all working fine, except for one.That one is a class derived from System.Collections.Generic.Dictionary<>. And even that one has been working for me, so long as the elements in the collection were scalars - ints, doubles, and strings. But when I tried to pass a member of a class, it showed up as a null object in the javascript. The class in question is marked [Serializable]. I changed it to a struct, and got the same behavior.It looks as if the serializer used in IScriptControl does a shallow copy.

MVC :: Javascript Not Executing After Ajax Post? forums.asp.net

I'm working on a prototype that makes heavy use of partial views and jQuery. When I use jQuery to do the post and updates to the page my javascript fires as I would expect. If i let Ajax.BeginForm handle it the javascript doesn't execute. An example partial view would be [Code].... The form is initially loaded using jQuery and the masks work. When the partial view is updated after the post, the ready function doesn't get executed. If I create an OnComplete handler and update the page using jQuery it works. Not sure if I'm doing something wrong or if it is a bug/feature of MVC Ajax.

How To Remove Browser Action To Repeat Handle Event Earlier stackoverflow.com

I have a registration page where I am saving some information. That is running successfully but when I press ctrl +F5 after registration. I get a message by browser to repeat event which is handled earlier. I have done blank all text values and to false viewstate of every control but It is saving 2 times.

How To Disable Focus To Browser stackoverflow.com

how to disable focus to a browser. i am currently working in .net application and i need to disable the tab focus to browser objects such as toolbars,address bar, since the user will not be using these components often.

Disable Cross Hairs In Browser? forums.asp.net

Can someone tell whether it is possible in ASP 3.5 using VB to disable the crosshairs in an IE Browser? If so, how do you do it? Reason being is because I want users to exit my app through an exit button

Javascript - Dynamically Change Form Post URL? stackoverflow.com

I want to make the results of an ASP.NET form POST "bookmarkable", and I'm thinking of using query parameters to accomplish this. The idea is that a user will visit http://domath.com and they will type in a math problem, and view the results. The query and results are visible at http://domath.com?ProblemID={some guid here}The only part I don't really know is how do I change the target of the form URL since I'm using a POST instead of a GET..Here are the options I came up with, and I'm not sure what is practicalSubmit form as usual, server redirects to a URL with the new parameters attached Use a webservice or callback to get new URL. Javascript then updates form target

Forms Data Controls :: Scrolling Of Div With Javascript? forums.asp.net

I'm trying to control the scrolling of a div containing a gridview using some js code I found at [URL] Intent is to stop the gridview in the div from scrolling to the top after the select in the gridview is operated. Prior to adding the ajax extentions the detail would display when the select image was operated.  Now the grid appears ok but when the select is operated nothing happens - perhaps the nSelectedIndexChanging="DetailsView1_Show" code behind is no longer firing?  Perhaps I am missusing the ajax extentions? Using VS 2010. My code is as below, <asp:ScriptManager ID="ScriptManager1" runat="server"/> <script type="text/javascript"> var xPos, yPos; var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_beginRequest(BeginRequestHandler); prm.add_endRequest(EndRequestHandler); function BeginRequestHandler(sender, args) { xPos = $get('serviceorders').scrollLeft; yPos = $get('serviceorders').scrollTop; } function EndRequestHandler(sender, args) { $get('serviceorders').scrollLeft = xPos; $get('serviceorders').scrollTop = yPos; } </script> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <input type="hidden" id="hdnScrollTop" runat="server" value="0" /> <div id="serviceorders" style="position: absolute; left:300px; top:180px; height:100px; width:700px; font-family: Arial; font-size: small; color:black; overflow:auto">            <asp:GridView ID="sobydate2GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="SOSONO" DataSourceID="sobydate2gridview1SqlDataSource" AllowPaging="false"  HeaderStyle-Wrap="True" GridLines="None" OnSelectedIndexChanged="DetailsView1_Show" OnSelectedIndexChanging="DetailsView1_Show"> <Columns> <asp:CommandField ShowSelectButton="True" ButtonType="Image" SelectImageUrl="linkimage.gif"  /> <asp:BoundField DataField="SOSONO" HeaderText="Service Order" ReadOnly="True" <asp:BoundField DataField="SORSP" HeaderText="RSP" SortExpression="SORSP" />

Passing A Parameter To Javascript Using Xslt? www.vbforums.com

how to pass a parameter to JavaScript using xslt is there anyway i can use parameter/variable...? like an example <img src="try.gif" onclick="Javascript:Testfunction( xsl Parameter/ varable )"; /> is there anybody who knows the XSL...

How To Get The Reference Of GridView FooterRow In A JavaScript Function bytes.com

I've a gridview with a footer row contains two textboxes and one button for inserting the new records to the gridview. I want to validate the values of these text boxes on client side before entering into the database .im decided to add one javascript function..but how can i get the reference to the textboxes which are there in the footertemplate.

Web Forms :: Accessing Javascript Variable In Label Control? forums.asp.net

I have a javascript variable in the script tag. I am assigning a value to that variable and I want the same value to be assigned to the label control e.g. consider the sample code below : <body><script type="text/javascript"> var a=window.opener.parent.document.getElementById('description').DataValue; </script> < asp:Label ID="lblSubject" runat="server" Width="142px" Font-Bold="True" Font-Size="10pt" Font-Names="Arial" >SUBJECT</asp:Label> </body>  How do I assign the value of variable a to the label?

Javascripts And MySQL In A PHP Page bytes.com

I have some pages which perform Javascript calculations etc. and end up with a number in a box at the bottom of a page. The pages themselves are PHP, but with Javascripts embedded in them. How can I get the results of these calculations (which are in text boxes), and place them into a mysql database?I gather that it may not be possible to do this directly, but is there any way around it? I dont want to have to rewrite the scripts in another language!

Width & Height Of Browser Viewport. bytes.com

How can I get visible viewport dimensions of any browser?

Web Full - Fledged Browser Automation Tool For Testing User Interactions With Widget Library stackoverflow.com

I've realized I need a full-fledged browser automation tool for testing user interactions with our JavaScript widget library. I was using qunit, starting with unit testing and then I unwisely started incorporating more and more functional tests. That was a bad idea: trying to simulate a lot of user actions with JavaScript. The timing issues have gotten out of control and have made the suite too brittle. Now I spend more time fixing the tests, then I do developing. Is it possible to find a browser automation tool that works in: Windows XP: IE6,7,8, FF3 OSX: Safari, FF3? I've looked into SeleniumIDE and RC, but there seems to be some IE8 problems. I've also seen some things about Google's WebDriver, which confusingly seems to work with Selenium. Our organziation has licenses for IBM's Rational Functional Tester, but I don' think that will work on the MAC.

Dynamically Scale Text Size Based On Browser Width? stackoverflow.com

Here is the project this is for: As you can see, right now the text size is just set to a static size. I'd like the text to always be ~90% of the width of the window but to also scale the vertical size accordingly. Is there a relatively easy way of doing this?

Jquery :: Get Center Of Width In All Browsers stackoverflow.com

I have following code to get center of width: But it did't return correct center of screen. What i need to get correct center horizontal.

Jquery :: Determine Browser Height & Width To Resize Image To Full Screen stackoverflow.com

I am trying to use jquery to get the browser height and width and than to use that information to resize my image to fit that dimensions. I want the images to be full screen on each page whether it is viewed on a lap top or a large monitor. I have all my images at a standard width of 1280 dpi now. To view what I have so far I have posted my code to my nyu account: [URL]

Jquery :: Draw In Arrow On A Web Browser? stackoverflow.com

Given two point, (x, y) and (x1, y1), how do I draw an arrow between these point a the web browser. Can jQuery or HTML5 does this?

Cross Browser - IE Setting Style.left Not Working? stackoverflow.com

I'm struggling setting a style attribute to a div that's created via javascript.The flow is:The script loadsIt creates a <div id="test">It sets attribute style="top: 20px; left: 10px; margin: 0px; position: absolute;"Everything works fine with all other browsers but when it comes to IE things just don't work.How can I set those style attributes in IE ? So far with this code: var div = document.getElementById('test'); div.style.left = "10px"; div.style.top = "20px"; [code]....

Passing Array To The Javascript? forums.devshed.com

Large array that gets unserialized with php and I want said array available to me via javascript.If I were making an ajax call, I'd just use jquery's getJSON method and I'd be all set.In this case, however, the array gets created when the page initially loads.I guess I could create the logic by parsing through the array and printing it out as javascript, but was hoping that there was any easier method.

Javascript - Send Data To Js - Safest Way? stackoverflow.com

I want to know what is the safe method to send php data to js. I found by search to start php tags in js and pass data by this way. var jsVar = "<"+"?php echo $phpVar;"+"?"+">"; But it seems a dangerous way to pass data exposing threats. I want to know whats alternative way to do same that is safe.

Add Item To The Default Browser Right Button Click Menu? stackoverflow.com

Is it possible to add item to the default browser right button click menu?

Modify Browser Word Wrap Behavior? stackoverflow.com

I notice that when the browser (firefox, safari) wraps text, the space where it breaks to wrap (the last space of a line) gets turned into a zero-width space, i.e, when you create a mouse selection across multiple lines in a paragraph, the space where it breaks does not visibly show. Is it possible to change this behavior so that the breaking space retains its width?

JQuery Javascript Combo List? stackoverflow.com

I am trying to create a form in which I can have a list and an input box/text box. What I want is when a user types in the text box a value and clicks add to the list, the value should be added to the list. Then once the person presses submit, the PHP code should be able to use the values obtained from list for procedure. I am trying to do it in PHP and HTML but a few have suggested jQuery in JS. Please help with what you know or how I can do this. If you dont understand I have a diagram for what I want to do... <?php $Fname = $_POST["Fname"]; if (!isset($_POST['submit'])) { // if page is not submitted to itself echo the form ?> [Code]...

Unable To Drag Javascript Links bytes.com

Although I am able to drag and drop HTML links, I am no longer able to drag Javascript links. In the past, I have been able to drag a link from such places as the TinyURL! link on http://tinyurl.com to my Links Toolbar. Now I can't. When I try to drag any Javascript link, my cursor does not change the same way it does for an HTML link. I see a hand icon for both link types. When I try to drag a Javascript link, it changes from a hand to an arrow as soon as I pull the cursor away from the link. Is this problem new to WinXP SP2? Has one of my settings changed? Has Norton Internet Security become more actively involved?

Android :: Cannot Link One Person In People To Facebook androidforums.com

I have a ton of people in People (google) and 300 people in Facebook. All seem to link just fine. Except one person. She is in People (google) and in Facebook. Same exact name. If I open up People, she is there. If I open up Facebook friends, she is there. When I open up People, find her and try to link to Facebook, she is not there.

Android :: Facebook / Address Book Link And Updates? androidforums.com

When I open my address book and edit a contact and select facebook to link the contact. It updates and uses the picture from facebook. This is a very neat option, my question is when I link a profile from facebook to a contact does this decrease battery life, or can I change some setting so facebook wont update but maybe once a day?

Android :: Remove Facebook Contacts From Phone Contacts? androidforums.com

How can I remove facebook contacts from phone contacts?:rolleyes::confused:

Android :: Webview Anchor Link - Jump Link - Not Working stackoverflow.com

I have a WebView in my Android App that is loading an HTML string using the loadDataWithBaseURL() method. The problem is that local anchor links (<a href="#link">...) are not working correctly. When the link is clicked, it becomes highlighted, but does not scroll to the corresponding anchor. This also does not work if I use the WebView's loadUrl() method to load a page that contains anchor links. However, if I load the same URL in the browser, the anchor links do work. Is there any special handling required to get these to work for a WebView? I am using API v4 (1.6). There isn't much to the code, here are the relevant parts of some test code I've been working with: CODE:...................

Android :: Link Up UI Elements To Data In Complicated Link Item stackoverflow.com

How can I link like the Checkbox and larger TextView to external data? Should I use a SimpleCursorAdapter? Or create my own adapter? Should it extend ArrayAdapter or BaseAdapter? My list item UI:

Android :: Organizing Contacts - Gmail - Facebook androidforums.com

i keep all of my contact in my gmail contact list. I also have facebook on my droid2 and whenever i go to my contacts list to make a call both my gmail contacts and my facebook contacts are in the list. I have 500 facebook contacts and many of them are just people i have known in the past but dont talk to so I dont need them in my phones contact list. it also makes teh list HUGE having 500 more contacts. I want to change it so that when i go to my contact list I only see my gmail contacts.

Android :: Back Up Facebook Details With Gmail Contacts? androidforums.com

I've just spent a while linking Facebook details with Gmail contacts and my phone book. How should I best backup all this data now? I really don't want to have to link it all again if I lose my phone or need to do a factory reset. Is there some way of exporting all the data now? I tried exporting to SD card and then adding to Gmail contacts and this didn't copy across facebook photos.

Android :: Sync FaceBook Pictures To GMail Contacts androidforums.com

I have my Contacts updated with Facebook profile pictures, but when i check on the GMail website, no contact has the Facebook photo. I want to synchronize the pictures from Facebook to the contacts I have on my GMail account.

Android :: Links To Articles - How To Move Palm Contacts To Gmail Contacts androidforums.com

I'm about the take the Android (EVO specifically) plunge. I'm coming from an old Palm phone. Wow, talk about a quantum leap. Anyway, to prepare for the move, how do I get my Palm contacts into Gmail's contacts? Is that how it works? I need to move my Palm contacts to Gmail contacts, right? Then when I get my new EVO, it will sync with Gmail and my contacts will be in the new phone?

Android :: Automatically Synced With Google Contacts androidforums.com

I just got a new incredible last week, and have already been using a Google Contacts account for some time. When entering a new contact on an iPhone, the info is automatically synced with Google contacts, and vice versa. My Google contacts automatically appear in my phone directory, but how can I get new contacts entered thru my phone synced to my google account, without having to manually select 'contact type' when entering the info?

Open Website From Vb www.vbforums.com

HiHow do you open a web page in the default browser from VbThanks

Android :: Android: Best Way - Library To Write An App That Simply Gets - Sets Your Facebook Status,... stackoverflow.com

I have the Android Facebook-Connect library running in my emulator and I'm able to set my status with the Facebook API I have setup. However, I don't know where to go from there? Am I supposed to use the session key that this library allows me to get and make some Facebook API calls? I haven't found any code examples to even see what the proper syntax is. Am I better off using another library? I tried fbrocket with limited luck(I get a "server error 104 - Incorrect signature").