I am trying to get JsTree to work to get a folder view in my MVC application. Everything works fine if I use existing static html ul list in the page view. But I need to get the ul list dynamically, so I am trying the ajax call for JsTree described in the documentation:
<script type="text/javascript">
var url;
$(document...
Hello, I'm new around so if I'm missing some info or something, please let me know and I'll provide it. I've already looked for informationg regarding this error, but I haven't found anything relevant yet.
So, here's the deal.. Some of my controllers actions are being called twice, and I've just noticed that when I was wondering why was ...
Suppose I'm entertaining a business model that offers free access to my propritary data if they visit my website. These users will have advertising subsidize the cost.
Then, for the paid users I want to offer direct raw WCF access to my data as an incentive. I don't want this available to the freebie users, but at the same time the si...
I have this small jquery script that does not work if I remove the 'async:false' part... And I don't understand why (the alert() part is there just to check if it works or not). My guess was it would work asynchronously but it just doesn't. Can somebody explain to me why? And what should I change to make it async?
$(document).ready(func...
Could you point me to some tested jquery plugin for ajax file upload? I would like it to be jquery 1.4 compliant.
...
Hi guys, I am fed up with this problem. Here is two pages, test.php and servertest.php.
test.php
<script src="scripts/jq.js" type="text/javascript"></script>
<script>
$(function(){
$.ajax({url:"testserver.php",
success:function(){
alert("Success");
},
error:function(){
alert("Error");
},
dataTyp...
currently I have following code:
home.php
<form name='myformname' id='myformid'>
<input type='text' name='mytext1' value='abc'>
<input type='text' name='mytext2' value='123'>
<input type='submit' value='Submit'>
</form>
<div id='textone'></div><div id='texttwo'></div>
_home.php
$arr = array( 'textone' => $_POST['mytext...
Pretty normal scenario:
I have a report with a large number of rows (>2000) to be rendered as an HTML table.
I am paging the results on the client (browser) side.
I want to render the first page as quickly as possible, the rest will continue to download as JSON (about 1MB total)
I want to use a single request to the server because th...
I have a JavaScript from which I am making an Ajax Call to a JSP. Both JavaScript and JSP are deployed in the same web server. From JSP I am forwarding the request to one of the service (servlet) available in other web server using HttpURLConnection. I got the response in JSP, but now I need to pass the response back to JavaScript which ...
I'm trying to setup Google Maps using the Google Maps API v3 JS code. I've got multiple tabs that when clicked open up an AJAXed page of content without reloading the original page. Each tabbed content contains a map. Below is an example of how I've got the map setup. Please note, the list element here is just an example, each tab contai...
I have a function which I defined in the code-behind as follows:
<WebMethod()> _
Public Shared Function testFunction() As Integer
Return 0
End Function
I'm trying to call it using Javascript on the client-side as shown below:
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePartialRendering="True"...
I'm constantly confused about how to pass values between Views and Controllers in MVC. I know I can set ViewData in the Controller and use that in the View, but what about the other way around?
What I have found is I can use a hidden field and then access it through Request.Form["name"] like this:
<% using (Html.BeginForm("Upload", "Cu...
Hi,
I've been attempting to refactor a fairly simple three or four page site to use a very lightweight MVC setup (probably overkill - but I thought I'd try it out for fun).
The site uses an .htaccess file:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME...
I'm having an issue sending array parameters to a Struts 2 action class. I am using struts 2.1.8.1.
Here is some example code:
public class MyAction extends ActionSupport {
private String[] types;
public String execute() {
return SUCCESS;
}
public String[] getTypes() {
return types;
}
public...
Greetings!
I need to dynamically check if a session variable changes every few seconds. For example, the PHP session variable "x" may have a value of "1", and then after five seconds, has a value of "2".
The PHP session variable "x" is changed by using a form. If the session variable changes, I need the page to reload.
How can I relo...
Hi, I'm not sure where to start on addressing this issue but if I have a AJAX web application that sends requests to the server and runs long queries on the database (postgresql in my case), is there a way to stop or kill the queries if while still running, the user refreshes the page or closes the session...etc?
...
I have a WCF service which needs to be called from client side(ajax call).
I want to use ScriptManager on ASPX page to add a ServiceReference to the WCF service (or) JQuery ajax call to the WCF service. I want to deny anonymous users accessing the WCF service. Is there any way to do user authentication before calling a service method fro...
i have a java script dictionary. its dictionary<string,dictionary<string,string>> if it is helpfull.
i cant pass it to controller class using jquery ,ajax
is ther any way to do that?
<script language="javascript" type="text/javascript">
var dictionary = {};
var props = {};
props["test1"]="test1";
props["test2"]="test2";
props["test3"...
Why Ajax pagemethods are static?
...
I have a view with a simplemodal popup window. You click on a hyperlink, it pops up the window, and if you try to submit the popup'd form without filling in any information it will display the appropriate validation error message next to the textbox. If you close the modal popup and click the hyperlink again, it seems to not do the cli...