Hi, I have a WCF service that creates a report in PDF, it works, since I
have a C# app that use it, however I need to use the same method to
obtain the same document in my jquery mobile application. This is the
method that generates the document:
The method does not return anything since it's void, I'm
sure that for this kind of operation, what I'm doing is not
correct, but I don't know how to solve this issue, I'm able to
read and retrieve any value from the database, but this is completely
different. I would appreciate your help, thanks!
Hi, I have a json call that consumes a web service, it request several
parameters, all of them string, but one of them is a decimal, something
like this for example "2.21" as string, however, jQuery keeps
crashing with error "500 undefined" if that parameter contains
a dot, however if I change it to comma, it works, but the number is
stored in the database as integer, with no coma, this my my code:
It works great if the parameter "unitPriceVal" does not
contain dots, but I need that so I can store the right number in the
database, is there any way to send the value with the dot and save it
in the server? Thanks a lot!
Hi, I'm working in a jquery mobile site, where I have an ajax method
that creates a table dinamically and then I use html() to add it to a
div, a button renders the table each time, from 10 to 10 records, the
very first time that the table is generated, the column toggle popup
looks weird, right after I access #page1 but the following times, it
shows correctly, when using the button, this is pretty much the code:
function populateGrid()
{
var data1 = "<table data-role='table'
data-mode='columntoggle' class='ui-responsive
table-stroke' id='table1' data-column-btn-theme='b'>";
Hi, I have a page loading in a div using jquery.load(), however when the main page is resized, I'd like to resize the loaded page as well, because it contains a div, is there any way to accomplish that? I already setup the $(window).resize function in the loaded page, but it does not work, I will appreciate your help, thanks!
Hi, I'm trying to use a navigation system for a website where there is no refresh at all, through jQuery, I don't know if using ajax is possible, but I'd prefer that approach, however, this is what I have so far:
<li><a href="dynamicLoad_TEST2"><b style="color:white;">Click here 1</b></a></li>
<li><a href="dynamicLoad_TEST"><b style="color:white;">Click here 2</b></a></li>
</ul>
<div id="content"></div>
</body>
It works, and it changes the url, the called page is loaded into the div, however, the back button in the browser does not work, and I think there's a better way by using ajax, but I don't know how to start, I've seen a few tutorials using ajax and php, and the returned data is being sent using echo, but if I do it with only html, I don't know how to return the html to ajax. I will appreciate any help, thanks!
Hi, I have a problem while using jQuery, Ajax and a Servlet in java, I'm sending an image through Ajax and uploading it to a SQL table, that works, but, I'd like to return a JSON object, to be honest, I'm fairly new in sending image data through Ajax but I guess the problem why I'm not receiving the JSON object back is because the ContentType and the ProcessData are false in the ajax call(which needs to be used this way since I'm sending an image):
The thing is that the image is being uploaded, but it never enters in the success function, could you guide me please? I'd like to send the image to the servlet, upload it to the database(this already works) and return a JSON object back to the JSP, thanks!!
I'm sending two values, one which is a select value and the other a static string value, if I comment that line, it works with no problem, but if I don't nothing happens, I guess it's giving me an error but I can't see it in the Chrome debugger, nothing shows up, any help? thank you!!
Hello, I have a problem, I have a table which dynamically create <tr> elements with a unique numerical id, this is created on a while loop from a database statement, when I click on a hyperlink on each <tr> I use this:
function checkRequest(codigo){
$("#" + codigo).fadeToggle("fast");
}
So in this way, I'm sending the unique code (codigo) and I fadeToggle the <tr> identified with that specific id, it works, no problem, it display with one click, hides with another one, BUT, now I need that, when you click on a hyperlink, if any other <tr> is being displayed at the moment, close all of them, and open the clicked one, is there any way I can do this? thanks, I hope I was clear, have a nice day!
This is what I have so far, the div is being resized properly depending on window.height() and follows the scrollbar BUT, it does not work on Internet Explorer 8, when I go to the bottom and then resize the window to any resolution, the div stays at the bottom and that makes the scrollbar larger and larger......
I'm trying to do it, and it works with Firefox and Chrome, but IE8 does not set any "bottom limit" so I can scroll the site all over and never stops, any idea? thanks!
I was checking on jQuery plugins, but most of the scrollbar ones are using like 4 - 5 div classes just to stylize one scrollbar and most of the classes names must be specific to make it work with the plugin, is there any way to give some style to a scrollbar without doing all that coding? I understand it's not an easy task, but maybe there's a workaround, thanks!! :D
I have a website with a lot of jQuery effects and functions which is not working properly under Internet explorer 8 and below, it works excellent on Chrome, Firefox, Opera and Safari however, I'm planning to make a light version of the website for Internet explorer, is there a way to verify browser type and version and redirect the user either to the light or normal version of the site according to those parameters? thanks in advanced!!!
Hello, this is my first post, I've been using jQuery for about 1 month and now I want to display a full div with a loading gif that hide itselft after all the images in the site are loaded sin these are a lil bit heavy, this is what I have:
For this example, let's say we have two images, that I need to display only after they are fully loaded, that's why I need a blocking div with opacity showing a loading gif in the meantime.
styles.css
.loadingBar{
background-color:#FFF;
background-position:center center;
width:100px;
height:100px;
top:100px;
position:absolute;
z-index:2;
background-image:url(images/AjaxLoader.gif);
background-repeat:no-repeat;
-webkit-border-top-left-radius:10px;
-webkit-border-top-right-radius:10px;
-webkit-border-bottom-left-radius:10px;
-webkit-border-bottom-right-radius:10px;
}
.fullScreen{
background-color:#000;
width:100%;
height:100%;
top:0px;
left:0px;
position:fixed;
opacity:0.75;
filter:alpha(opacity=75);
z-index:1;
}
index.php
<body>
<div class="fullScreen"></div>
<div style="margin:0 auto; width:100px;">
<div class="loadingBar"></div>
</div>
<img class="img1" src="images/bg.png" />
<img class="img2" src="images/bg2.png" />
</body>
jQuery code
$(document).ready(function(){
$(".fullScreen").show("fast");
$(".loadingBar").show("fast");
$(".img1").hide("fast");
$(".img2").hide("fast");
$(window).load(function(){
$(".fullScreen").fadeOut("slow");
$(".loadingBar").fadeOut("slow");
$(".img1").fadeIn("slow");
$(".img2").fadeIn("slow");
});
});
So, I hide the images and show the div containing the full screen and the loading image when the document.load() happens, then, when the images are fully loaded (window.load()) I hide the div with the full screen and the loading image and show the images again.
This works perfectly on Chrome, Firefox, and Opera, but Internet Explorer 7 - 8 is not hiding the loading image div after the window.load happens, and also the loading image repeats itself on the div, it's like ignoring the no-repeat sentence, is there a better way to accomplish this? I'm running out of ideas, please enlight me, thanks in advanced!!!