JavaScript In Widgets - Handle?
Dec 9, 2010
I'm using ASP.NET to develop a webapplication. In this application I'm using a dashboard. And now I try to develop my own widget for this dashbord. But I don't understand how to do the javascript part. In the widget I want to use the OpenLayers JavaScript map. It's created like this
<script>
var map = OpenLayers.Map("mapDiv");
</script>
<div id="mapDiv" />
Like this it works fine if I only want to use one widget at the same time. But if want to use it multiple times in the same dashboard, I get a lot of problem. I have two divs with the same id and two variables with the name map. So the div id is no problem, I generate it dynamically with ASP.NET. But how do I handle the JavaScript part, so that I don't overwrite my "map" variable?
View 1 Replies
Similar Messages:
Mar 24, 2010
i have a menu in my master page, which shows up on all pages. the menu consists of linkbuttons, which don't work when javascript is disabled.
how do i work around it? how common is it that someone's javascript is disabled anyway?
View 1 Replies
Jan 22, 2010
I create asp.net mvc application and have task to create ability to move parts of page. For example, admin has ability to move poll to top page, to bottom, to center etc. Who tried to make it? My opinion - page has many divs, each div has webusercontrol, divs have position:absolute (or relative, not sure) and thru admin you can set which div has which values.
View 1 Replies
Apr 4, 2011
I'm using some of the typical ASP.NET's Validation Controls in my website. Now I'm trying to disable the JavaScript in my browser to test my application and of course the Validation Controls no longer works. I think it's best to try to make them work using one of the solutions down here instead of reinvesting the wheel and build a validation layer for the page or my objects -Am I thinking right?-
What do you think of these options and why:
Include in clicked button's event a code to check if the page is valid and if not explicitly call the Page.Validate(); method Check if whether the JavaScript is enabled and if not I should call Page.Validate();
View 3 Replies
Jul 6, 2010
I noticed that the asp:Button for example will work without javascript enabled in the browser. However any other control with an "OnClick" or "OnServerClick" event must use the javascript_doPostback.Are there any controls besides the Button that don't need to use javascript?I want to know because I want to be able to style the Control however I want without it looking like a button, and I want it to still work without the user having javascript enabled.
View 2 Replies
Feb 15, 2011
I am having an update button on my from on clicking update i would like to prompt the user as Do you want to delimit the record with Yes and No buttons. If the user clicks on Yes i would like to execute the code which can delimit the record if not just update the record.
My sample code
protected void btnUpdate1_Click(object sender, EventArgs e)
{
EmpID = Convert.ToInt32(HiddenField1.Value);
if (ID == 2)
{
[Code]....
View 3 Replies
Jul 25, 2010
is there any free open source Widgets (iGoogle-like widgets) framework for ASP.NET that I can build my own widgets with and can be used for commercial use (sites developed with it can be sold).I checked dropthings and Kalitte but they require a licence.
View 1 Replies
Aug 13, 2010
I have created a MVC application and I want to make it customizable by adding an API to it, how do I go about doing this?
So, I have a database table called Orders with a bunch of a fields and my application is a simple form with the ListView control and users can add and delete orders. this API should allow users to add extra columns to ListView control and extra buttons as well.
View 2 Replies
Feb 7, 2010
is it possible to create kind of widgets that are pluggable in ASP.NET MVC? I'd like to give my users the option to upload and attach a widget that I provide (ie. zip format). Recently I thought about deploying Areas in different project assemblies. Is it still possible with MVC RC2 (later RTM) and is there an option to dynamically attach that areas (say from a admin panel)?
Second question, how would you guys create a dynamic layout where admins could select widgets to display, arrange them, disable, move them etc.? I mean a flexible layout that can be changed via the admin panel without having to touch the code. Here I thought about defining and storing layout widgets paths in a db. Later I could associate these widgets with routes (in db). For each request (controller, action) I would fetch the layout among with associated widgets and output them recursively. Probably I could user RenderAction and PartialViews for that.s my direction correct or should I focus on some other technique?
View 3 Replies
Jan 28, 2010
you must have seen widgets like code which people place inside their HTML and it starts showing a small widget in there, how we can we do it in ASP.net, for example if i want to show some specific data of my site to anywhere some specific code is placed, how can i generate that embeddable code that can start showing my specific block of data to anywhere from any site?
View 2 Replies
Feb 14, 2010
Is their a way to handle the event of an Asp.net radio button being selected in an Aspx web form using Java Script? Suppose I have 3 radio buttons on a web form and for each radio button selected there would be a Java Script method that would be called for each different radio button selected?
how to do this using Java Script and Asp.net radio style buttons?
Below is an example of how I currently doing my solution using Asp.net and a C# event handler.
[code]....
View 3 Replies
Sep 1, 2010
I am using ASP.NET MVC in C#
I have a page where the user can move different Widgets around the page, and I now need a method to save the state of the widgets. I am using jQuery in the HTML page, and the jQuery posts the new page layout using JSON. I am unsure how to read the JSON in the controller.
The code I'm using is based on this example here - [URL], but the code for saving the result is in PHP.
[Code]....
I am willing to consider alternative ways to do this, as I may not have chosen the best way to do this.
View 1 Replies
Jul 15, 2010
I am designing a dashboard for my own application to serve as a control panel for the end user. I am thinking about using the Dropthings framework or DynamicDashboards which cover all of my internal widgets requirements.
But besides including widgets developed internally by me, I would like for the user to be able to include iGoogle widgets as well.
Is this possible?
What needs to be done in order to host an iGoogle widget?
View 1 Replies
Mar 2, 2011
Is there anyway I can handle both json and html return types when posting jquery ajax:
For example, this ajax call expects html
[code]....
View 1 Replies
May 11, 2010
I checked my html page generated by asp.net and I can see this line
Sys.Application.initialize();
Sys.Application.add_init(function() {
$create(AjaxControlToolkit.CollapsiblePanelBehavior,
{
"ClientStateFieldID":"rptActiveQuotes_ctl01_qcQuote_cpeDetails_ClientState",.......
I think it's generated from CollapsiblePanelExtender with name cpeDetails. And I see you can pass number of events to it, wich is now null (third argument). What should I do to set add_ended event there?
View 1 Replies
Feb 5, 2011
I have a webcontrol that will exist multiple time on a page. I have some javascript (JQuery) in the control and when I have multiple controls on a page the functions get confused.I have seen plenty of stuff on why this is the case - basically my functions use set id's but i need to somehow make them relative.An example of a function ...
function showUploader() {
var img = $('#<%=ImgID.ClientID %>');
$('#<%=UploaderIFrame.ClientID %>').attr('src', '<%=ResolveUrl("~/Controls/EditableImageControl/ImageUploader/ImageUploader.aspx") %>' +[code]....
how to get references to the html elements in the web control?
View 1 Replies
Jun 25, 2010
I am interested in designing/building a dashboard application which will include widgets that represent applications that might be developed in different languages/architectures (PHP, Java, ASP.NET).
View 1 Replies
Jan 11, 2011
We are facing problem in drag drop widgets.
We are using IE7 version with OS as Windows XP. Drag drop is not working when we publish the web site.
Also these widgets are not working for published web sites on the server with OS Windows 2003 server.
View 10 Replies
Feb 14, 2010
I am developing and Asp.net website. Occsionally I will have to display A Java Script dialog box. The dialog box will have two buttons on it. One labeled "Proceed" and the other labeled "Cancel". Then I need two Java Script methods to respond to which button was pressed. So I suppose my java script methods to handle the button press might look like the code below.
Anyway, I don't know how to invoke these methods when the dialog button are pressed.
[code]....
View 6 Replies
Apr 19, 2010
I'm creating an ASP.NET application which uses Facebook Connect and fbml tags. It also uses the LinkedIn widget. When I run this app in any browser, there are no warnings and everything works. However, in IE, a message like this comes up:
Security Warning:
The current webpage is trying to open a site in your Trusted sites list. Do you want to allow this?
Current site:http://www.facebook.com
Trusted site:http://localhost
(same for LinkedIn.com). I know how to fix this from a client perspective and to stop the security warning showing up. However, is it possible to ensure this message doesn't come up as it could be off putting for users who don't know how to suppress this warning? I haven't tried uploading it to my webhost, so not sure if this message will appear for everyone in production. However, I always get it on my local machine.
(None of my pages use SSL, so I don't think that's the issue. I tried using FB's HTTPS urls but that didn't make a difference).
View 1 Replies
Jul 15, 2010
how to handle the Exception
View 9 Replies
Apr 20, 2010
How to handle cookies in asp.net?
View 5 Replies
Jun 25, 2010
How am I going to handle time input because I am having a problem especially if the user inputs greater than 24:00:00.
View 2 Replies
Feb 11, 2010
This is a thread looking for advice/comments.I have datalist that has an image in each row. Right now i am just setting the height to a certain height like 75px and this works just fine. Our images are pretty web friendly. But if a user was to have a jpeg that is like 2mb and i change the height I am guessing it still is loading the full 2mb even though the image has "shrunk"?If so what is best way to handle thumbnail creation. I dont want the end user to have to create thumbnail so i was thinking of doing it dynamically if the way I am doing it now is gonna slow down my page.
View 2 Replies
Apr 2, 2010
I am writing a site with six pages that use the same 12 pieces of data for x number of people. The user always goes to a fixed page where I do all of the DB related work to get the 12 pieces of data for x number of people. However, I don't want to do the DB related work again as it is overhead intensive. So after the initial page I end up with something like this:
Person1, Data1, Data2,Data3,.......Data12
Person2, Data1, Data2, Data3........Data12
[code]...
I have been trying to figure out the best way to store the data so that I can use the data set throughout the remaining 5 pages. I thought of setting up an array within a class but I keep getting a null value when I try to access that class values (maybe I have it set up wrong). I thought using a session variable to store the array, but because it is multi dimensional I am having issues (again, most likely due to a lack of knowledge). I thought perhaps storing the array into a temp SQL table would be efficient, because then it would be a single read out to SQL to get the datatable containing the data back into the page, but that seems like a lot of work for something that should be easier.
View 5 Replies