hey,
In my app the slideshow don't appear when i compile my android app using build.phonegap.com and i am sure that my code is correct because i was use before phonegap so far how i would fix it
Regards yours
In my app the slideshow don't appear when i compile my android app using build.phonegap.com and i am sure that my code is correct because i was use before phonegap so far how i would fix it
Regards yours
- 12 Posts
- 0 Reply Likes
Posted 4 years ago
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
My crystal bowl is apparently not calibrated properly.
What slideshow? Where are the images coming from? How do you whitelist? Do you get any javascript errors? What have you changed since the last time it worked correctly? How can you be sure your code is still correct, while the environment (OS, PGB) has changed?
What slideshow? Where are the images coming from? How do you whitelist? Do you get any javascript errors? What have you changed since the last time it worked correctly? How can you be sure your code is still correct, while the environment (OS, PGB) has changed?
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
@Petra,
Wait, I have the weegie board out. It says, "High winds until noon today."... Sorry, it appears unrelated to this. :-(
Jesse
Wait, I have the weegie board out. It says, "High winds until noon today."... Sorry, it appears unrelated to this. :-(
Jesse
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
@Amany,
Since this is your first post, please answer the following question.
- Is this your first hybrid App?
- Are you using the Phonegap Desktop App?
- Are you using CLI, SDK or Build? Please do not assume the answer, please read the link.
thanks
Jesse
Since this is your first post, please answer the following question.
- Is this your first hybrid App?
- Are you using the Phonegap Desktop App?
- Are you using CLI, SDK or Build? Please do not assume the answer, please read the link.
thanks
Jesse
- 12 Posts
- 0 Reply Likes
hi
-yes its the first
-currently i use the build but i also test it with desktop app but the same result
best regards.
-yes its the first
-currently i use the build but i also test it with desktop app but the same result
best regards.
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
You cannot use Phonegap Build with Desktop App.
Have your tried your code with a mobile webbrowser.
Have your tried your code with a mobile webbrowser.
- 12 Posts
- 0 Reply Likes
no i try it with both desktop app and phone build and in both don't work in plus i tried with the mobile web browser and the same issue
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
Okay. What you are doing is not support _or_ no loner support.
Jesse
Jesse
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers



Amany El
Petra V., Champion
Which PGB version are you using now? Which version as it still worked?
Amany El
Petra V., Champion
You need to upgrade to at least PGB cli-5.2.0 (or rather a later version), first. Only then you should see how to get your slideshow working again.
Amany El
Petra V., Champion
Amany El
Amany El
which selcet my image that have the field feater on and it select right :
$query_all_location = "SELECT DISTINCT markers_id, markers_name, markers_logo, markers_address FROM markers where featured = 'on'";
$rec_set_all_location = mysqli_query($localhost, $query_all_location) or die("Err ".$localhost->error);
while($row_all_location = mysqli_fetch_assoc($rec_set_all_location)){
$data[] = array(
'markers_id' => $row_all_location['markers_id'],
'markers_name' => $row_all_location['markers_name'],
'markers_logo' => $row_all_location['markers_logo'],
'markers_address' => $row_all_location['markers_address']
);
};
echo json_encode($data);
//end
and i link my app to this php file and this function :
function loadHomePageSlider(pw) {
console.log("## FUNCTION: loadHomePageSlider - BEGIN");
$("#mySwipe .swipe-wrap").empty();
var url ='my site url which goes to the previous function ';
if (offlineMode === "false") {
getRequest(url, function (data) {
var data = JSON.parse(data.responseText);
for (var i = 0; i < data.length; i++) {
console.log("##### SLIDER IMAGE #" + i);
var logo = data[i]['markers_logo'];
if (logo === "null" || logo == null || logo === "undefined") {
logo = "img/logo-web.png";
}
$("#mySwipe .swipe-wrap").append('');
$("#mySwipe .swipe-wrap").append('
}
var elem = document.getElementById('mySwipe');
window.mySwipe = Swipe(elem, {
auto: 3000,
paginate: true,
continuous: true,
stopPropagation: true
});
});
}
console.log("## FUNCTION: loadHomePageSlider - END");
}
so far waht is wrong whis this fuctions because m,y slideshow still dont appera i work on phonegap build 3.5.0 and test on an android phone
Petra V., Champion
Anyway, which of the console.log() are displayed? Where does your code fail?
Amany El
Petra V., Champion
if (logo === "null" || logo == null || logo === "undefined") {2. You said: both are displayed.
There are three log() statements, of which the second is an iteration. Unfortunately, nowhere you display or log the server response, so you're not even checking if that server response is what you expected.
3. Your html code as appended for each slide doesn't appear, so I can't see whether or not the included html is correct.
4. I can't see how you whitelist the images included in the swiper. Since you're building with the ancient PGB3.5.0, a wildcard access rule should be sufficient (but not for later PGB versions)
I also can't see whether or not you included a CSP
Amany El
2- and for the html code :
<div id="home_page_slider" class="slider">
<div id='mySwipe' style='margin:0 auto' class='swipe' data-snap-ignore="true">
<div class='swipe-wrap'>
</div>
</div>
</div>
Petra V., Champion
That is not Your html code as appended for each slide